diff options
| author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2023-04-27 04:52:52 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-04-27 02:52:52 +0000 |
| commit | 4192978c3afc943b93d9fae0f65822a2c4edfa62 (patch) | |
| tree | 2d8f2e45da287ee9fee27009bc6ce93b8b3bd64c /cli/tests/testdata | |
| parent | a16ad526e94304063f8efba710503bfd288d0248 (diff) | |
feat(lint): add `Deno.run` to `no-deprecated-deno-api` (#18869)
This upgrade includes a warning for the deprecated "Deno.run()" API.
---------
Co-authored-by: David Sherret <dsherret@gmail.com>
Diffstat (limited to 'cli/tests/testdata')
| -rw-r--r-- | cli/tests/testdata/coverage/complex_test.ts | 2 | ||||
| -rw-r--r-- | cli/tests/testdata/test/captured_output.ts | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/cli/tests/testdata/coverage/complex_test.ts b/cli/tests/testdata/coverage/complex_test.ts index 1202289cb..d6e9c2691 100644 --- a/cli/tests/testdata/coverage/complex_test.ts +++ b/cli/tests/testdata/coverage/complex_test.ts @@ -7,6 +7,7 @@ Deno.test("complex", function () { Deno.test("sub process with stdin", async () => { // ensure launching deno run with stdin doesn't affect coverage const code = "console.log('5')"; + // deno-lint-ignore no-deprecated-deno-api const p = await Deno.run({ cmd: [Deno.execPath(), "run", "-"], stdin: "piped", @@ -25,6 +26,7 @@ Deno.test("sub process with stdin", async () => { Deno.test("sub process with deno eval", async () => { // ensure launching deno eval doesn't affect coverage const code = "console.log('5')"; + // deno-lint-ignore no-deprecated-deno-api const p = await Deno.run({ cmd: [Deno.execPath(), "eval", code], stdout: "piped", diff --git a/cli/tests/testdata/test/captured_output.ts b/cli/tests/testdata/test/captured_output.ts index 43295f027..905156fd4 100644 --- a/cli/tests/testdata/test/captured_output.ts +++ b/cli/tests/testdata/test/captured_output.ts @@ -1,4 +1,5 @@ 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);"], }); |
