summaryrefslogtreecommitdiff
path: root/tests/testdata/run/warn_on_deprecated_api
diff options
context:
space:
mode:
authorhaturau <135221985+haturatu@users.noreply.github.com>2024-11-20 01:20:47 +0900
committerGitHub <noreply@github.com>2024-11-20 01:20:47 +0900
commit85719a67e59c7aa45bead26e4942d7df8b1b42d4 (patch)
treeface0aecaac53e93ce2f23b53c48859bcf1a36ec /tests/testdata/run/warn_on_deprecated_api
parent67697bc2e4a62a9670699fd18ad0dd8efc5bd955 (diff)
parent186b52731c6bb326c4d32905c5e732d082e83465 (diff)
Merge branch 'denoland:main' into main
Diffstat (limited to 'tests/testdata/run/warn_on_deprecated_api')
-rw-r--r--tests/testdata/run/warn_on_deprecated_api/main.js34
-rw-r--r--tests/testdata/run/warn_on_deprecated_api/main.out15
-rw-r--r--tests/testdata/run/warn_on_deprecated_api/main.verbose.out60
-rw-r--r--tests/testdata/run/warn_on_deprecated_api/main_disabled_env.out15
-rw-r--r--tests/testdata/run/warn_on_deprecated_api/main_disabled_flag.out14
-rw-r--r--tests/testdata/run/warn_on_deprecated_api/mod.ts11
6 files changed, 0 insertions, 149 deletions
diff --git a/tests/testdata/run/warn_on_deprecated_api/main.js b/tests/testdata/run/warn_on_deprecated_api/main.js
deleted file mode 100644
index 8811df78d..000000000
--- a/tests/testdata/run/warn_on_deprecated_api/main.js
+++ /dev/null
@@ -1,34 +0,0 @@
-import { runEcho as runEcho2 } from "http://localhost:4545/run/warn_on_deprecated_api/mod.ts";
-
-// @ts-ignore `Deno.run()` was soft-removed in Deno 2.
-const p = Deno.run({
- cmd: [
- Deno.execPath(),
- "eval",
- "console.log('hello world')",
- ],
-});
-await p.status();
-p.close();
-
-async function runEcho() {
- // @ts-ignore `Deno.run()` was soft-removed in Deno 2.
- const p = Deno.run({
- cmd: [
- Deno.execPath(),
- "eval",
- "console.log('hello world')",
- ],
- });
- await p.status();
- p.close();
-}
-
-await runEcho();
-await runEcho();
-
-for (let i = 0; i < 10; i++) {
- await runEcho();
-}
-
-await runEcho2();
diff --git a/tests/testdata/run/warn_on_deprecated_api/main.out b/tests/testdata/run/warn_on_deprecated_api/main.out
deleted file mode 100644
index ef85a6f99..000000000
--- a/tests/testdata/run/warn_on_deprecated_api/main.out
+++ /dev/null
@@ -1,15 +0,0 @@
-Download http://localhost:4545/run/warn_on_deprecated_api/mod.ts
-hello world
-hello world
-hello world
-hello world
-hello world
-hello world
-hello world
-hello world
-hello world
-hello world
-hello world
-hello world
-hello world
-hello world
diff --git a/tests/testdata/run/warn_on_deprecated_api/main.verbose.out b/tests/testdata/run/warn_on_deprecated_api/main.verbose.out
deleted file mode 100644
index e17562eef..000000000
--- a/tests/testdata/run/warn_on_deprecated_api/main.verbose.out
+++ /dev/null
@@ -1,60 +0,0 @@
-Download http://localhost:4545/run/warn_on_deprecated_api/mod.ts
-
-See the Deno 1 to 2 Migration Guide for more information at https://docs.deno.com/runtime/manual/advanced/migrate_deprecations
-
-Stack trace:
- at [WILDCARD]warn_on_deprecated_api/main.js:3:16
-
-hint: Use "Deno.Command()" API instead.
-
-hello world
-
-See the Deno 1 to 2 Migration Guide for more information at https://docs.deno.com/runtime/manual/advanced/migrate_deprecations
-
-Stack trace:
- at runEcho ([WILDCARD]warn_on_deprecated_api/main.js:14:18)
- at [WILDCARD]warn_on_deprecated_api/main.js:25:7
-
-hint: Use "Deno.Command()" API instead.
-
-hello world
-
-See the Deno 1 to 2 Migration Guide for more information at https://docs.deno.com/runtime/manual/advanced/migrate_deprecations
-
-Stack trace:
- at runEcho ([WILDCARD]warn_on_deprecated_api/main.js:14:18)
- at [WILDCARD]warn_on_deprecated_api/main.js:26:7
-
-hint: Use "Deno.Command()" API instead.
-
-hello world
-
-See the Deno 1 to 2 Migration Guide for more information at https://docs.deno.com/runtime/manual/advanced/migrate_deprecations
-
-Stack trace:
- at runEcho ([WILDCARD]warn_on_deprecated_api/main.js:14:18)
- at [WILDCARD]warn_on_deprecated_api/main.js:29:9
-
-hint: Use "Deno.Command()" API instead.
-
-hello world
-hello world
-hello world
-hello world
-hello world
-hello world
-hello world
-hello world
-hello world
-hello world
-
-See the Deno 1 to 2 Migration Guide for more information at https://docs.deno.com/runtime/manual/advanced/migrate_deprecations
-
-Stack trace:
- at runEcho (http://localhost:4545/run/warn_on_deprecated_api/mod.ts:2:18)
- at [WILDCARD]warn_on_deprecated_api/main.js:32:7
-
-hint: Use "Deno.Command()" API instead.
-hint: It appears this API is used by a remote dependency. Try upgrading to the latest version of that dependency.
-
-hello world
diff --git a/tests/testdata/run/warn_on_deprecated_api/main_disabled_env.out b/tests/testdata/run/warn_on_deprecated_api/main_disabled_env.out
deleted file mode 100644
index ef85a6f99..000000000
--- a/tests/testdata/run/warn_on_deprecated_api/main_disabled_env.out
+++ /dev/null
@@ -1,15 +0,0 @@
-Download http://localhost:4545/run/warn_on_deprecated_api/mod.ts
-hello world
-hello world
-hello world
-hello world
-hello world
-hello world
-hello world
-hello world
-hello world
-hello world
-hello world
-hello world
-hello world
-hello world
diff --git a/tests/testdata/run/warn_on_deprecated_api/main_disabled_flag.out b/tests/testdata/run/warn_on_deprecated_api/main_disabled_flag.out
deleted file mode 100644
index ce3755d16..000000000
--- a/tests/testdata/run/warn_on_deprecated_api/main_disabled_flag.out
+++ /dev/null
@@ -1,14 +0,0 @@
-hello world
-hello world
-hello world
-hello world
-hello world
-hello world
-hello world
-hello world
-hello world
-hello world
-hello world
-hello world
-hello world
-hello world
diff --git a/tests/testdata/run/warn_on_deprecated_api/mod.ts b/tests/testdata/run/warn_on_deprecated_api/mod.ts
deleted file mode 100644
index f74632b2c..000000000
--- a/tests/testdata/run/warn_on_deprecated_api/mod.ts
+++ /dev/null
@@ -1,11 +0,0 @@
-export async function runEcho() {
- const p = Deno.run({
- cmd: [
- Deno.execPath(),
- "eval",
- "console.log('hello world')",
- ],
- });
- await p.status();
- p.close();
-}