mirror of
https://github.com/denoland/deno.git
synced 2024-11-21 15:04:11 -05:00
chore: remove some unused tests (#26878)
This commit is contained in:
parent
617350e79c
commit
dcc75d5685
8 changed files with 1 additions and 181 deletions
|
@ -2899,37 +2899,6 @@ console.log(returnsHi());"#,
|
|||
.assert_exit_code(1);
|
||||
}
|
||||
|
||||
// TODO(bartlomieju): temporary disabled
|
||||
// itest!(warn_on_deprecated_api {
|
||||
// args: "run -A run/warn_on_deprecated_api/main.js",
|
||||
// output: "run/warn_on_deprecated_api/main.out",
|
||||
// http_server: true,
|
||||
// exit_code: 0,
|
||||
// });
|
||||
|
||||
// itest!(warn_on_deprecated_api_verbose {
|
||||
// args: "run -A run/warn_on_deprecated_api/main.js",
|
||||
// output: "run/warn_on_deprecated_api/main.verbose.out",
|
||||
// envs: vec![("DENO_VERBOSE_WARNINGS".to_string(), "1".to_string())],
|
||||
// http_server: true,
|
||||
// exit_code: 0,
|
||||
// });
|
||||
|
||||
// itest!(warn_on_deprecated_api_with_flag {
|
||||
// args: "run -A --quiet run/warn_on_deprecated_api/main.js",
|
||||
// output: "run/warn_on_deprecated_api/main_disabled_flag.out",
|
||||
// http_server: true,
|
||||
// exit_code: 0,
|
||||
// });
|
||||
|
||||
// itest!(warn_on_deprecated_api_with_env_var {
|
||||
// args: "run -A run/warn_on_deprecated_api/main.js",
|
||||
// envs: vec![("DENO_NO_DEPRECATION_WARNINGS".to_string(), "1".to_string())],
|
||||
// output: "run/warn_on_deprecated_api/main_disabled_env.out",
|
||||
// http_server: true,
|
||||
// exit_code: 0,
|
||||
// });
|
||||
|
||||
#[test]
|
||||
fn deno_json_imports_expand() {
|
||||
let test_context = TestContextBuilder::for_npm().use_temp_cwd().build();
|
||||
|
|
|
@ -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();
|
|
@ -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
|
|
@ -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
|
|
@ -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
|
|
@ -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
|
11
tests/testdata/run/warn_on_deprecated_api/mod.ts
vendored
11
tests/testdata/run/warn_on_deprecated_api/mod.ts
vendored
|
@ -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();
|
||||
}
|
|
@ -219,7 +219,7 @@ async function ensureNoNewITests() {
|
|||
"pm_tests.rs": 0,
|
||||
"publish_tests.rs": 0,
|
||||
"repl_tests.rs": 0,
|
||||
"run_tests.rs": 24,
|
||||
"run_tests.rs": 20,
|
||||
"shared_library_tests.rs": 0,
|
||||
"task_tests.rs": 2,
|
||||
"test_tests.rs": 0,
|
||||
|
|
Loading…
Reference in a new issue