SIGN IN SIGN UP
denoland / deno UNCLAIMED

A modern runtime for JavaScript and TypeScript.

0 0 30 Rust

chore: jupyter regression test for relative imports (#34494)

## Summary

- Adds an integration test that confirms relative TypeScript imports
work
  inside Jupyter cells, e.g.

  ```ts
  import { getData } from "./data.ts";
  console.log(getData());
  ```

- Writes a small `data.ts` to the kernel's CWD, sends an
`execute_request`
  containing the import + a `console.log` call, and checks both:
  1. the `execute_reply` status is `ok` (no parse/load crash), and
  2. an iopub `stream` message arrives with the function's return value.

The kernel already routes evaluation through the REPL
`evaluate_line_with_object_wrapping`
path, which transpiles top-level `import`s into `await import()` via
`var_decl_imports: true` and resolves dynamic imports through the same
module loader fallback (`./$deno$repl.mts` referrer in CWD) used by
`deno
repl`. This test exercises that path end-to-end so the scenario from
issue #26816 cannot regress silently.

Closes denoland/orchid#265
Refs https://github.com/denoland/deno/issues/26816

## Test plan
- [ ] `cargo test --test integration jupyter_relative_import` passes in
CI

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: divybot <divybot@users.noreply.github.com>
Co-authored-by: Divy Srivastava <me@littledivy.com>
E
em committed
d00ecdc4a877ed733faa36e7915746334217c7b2
Parent: fcbe725
Committed by GitHub <noreply@github.com> on 5/30/2026, 2:42:39 AM