diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2024-01-17 02:18:19 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-17 02:18:19 +0100 |
commit | 147bfc9c56d363daaed9ae83d3abc9a61934ed06 (patch) | |
tree | fe51a7835bfac4f9d08ec731523e9b73ccb8f764 /cli/tests/testdata/test/captured_output.ts | |
parent | 971eb0e5e836cdeaaefc25b2bab4c6a6a9f8e213 (diff) |
refactor: change tests to not rely on Deno.run() (#21961)
For https://github.com/denoland/deno/pull/21939
Diffstat (limited to 'cli/tests/testdata/test/captured_output.ts')
-rw-r--r-- | cli/tests/testdata/test/captured_output.ts | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/cli/tests/testdata/test/captured_output.ts b/cli/tests/testdata/test/captured_output.ts index 905156fd4..3eed249a2 100644 --- a/cli/tests/testdata/test/captured_output.ts +++ b/cli/tests/testdata/test/captured_output.ts @@ -1,10 +1,7 @@ Deno.test("output", async () => { - // deno-lint-ignore no-deprecated-deno-api - const p = Deno.run({ - cmd: [Deno.execPath(), "eval", "console.log(0); console.error(1);"], - }); - await p.status(); - await p.close(); + await new Deno.Command(Deno.execPath(), { + args: ["eval", "console.log(0); console.error(1);"], + }).spawn().status; new Deno.Command(Deno.execPath(), { args: ["eval", "console.log(2); console.error(3);"], stdout: "inherit", |