mirror of
https://github.com/denoland/deno.git
synced 2025-08-04 19:08:15 +00:00
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>
This commit is contained in:
parent
a16ad526e9
commit
4192978c3a
7 changed files with 38 additions and 4 deletions
2
cli/tests/testdata/coverage/complex_test.ts
vendored
2
cli/tests/testdata/coverage/complex_test.ts
vendored
|
@ -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",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue