Skip to content

deno test --watch: Deno.chdir() affects parsing of CLI args on reset #27383

Open
@nayeemrmn

Description

Version: Deno 2.1.4

// test.ts
Deno.test("foo", () => {
  Deno.chdir("..");
});

deno test -A --watch test.ts
And then save the file again. It will fail to find test.ts the second time (assuming there is no ../test.ts).

Metadata

Assignees

Labels

--watchrelated to the watch feature of the CLIbugSomething isn't working correctlyclirelated to cli/ dir

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions