From dded2a57ff4f55c3bc0947d97c50a38de3f076d4 Mon Sep 17 00:00:00 2001 From: Jonny Ingall Date: Thu, 21 Nov 2024 08:54:16 +0000 Subject: [PATCH] chore: deprecate itest in check tests --- tests/integration/check_tests.rs | 14 -------------- tests/specs/check/check_all/__test__.jsonc | 5 +++++ .../all => specs/check/check_all}/check_all.out | 0 .../all => specs/check/check_all}/check_all.ts | 0 tests/specs/check/check_all_local/__test__.jsonc | 5 +++++ .../specs/check/check_all_local/check_all_local.ts | 3 +++ 6 files changed, 13 insertions(+), 14 deletions(-) create mode 100644 tests/specs/check/check_all/__test__.jsonc rename tests/{testdata/check/all => specs/check/check_all}/check_all.out (100%) rename tests/{testdata/check/all => specs/check/check_all}/check_all.ts (100%) create mode 100644 tests/specs/check/check_all_local/__test__.jsonc create mode 100644 tests/specs/check/check_all_local/check_all_local.ts diff --git a/tests/integration/check_tests.rs b/tests/integration/check_tests.rs index 178ac6493f..b98d719fca 100644 --- a/tests/integration/check_tests.rs +++ b/tests/integration/check_tests.rs @@ -3,23 +3,9 @@ use deno_lockfile::NewLockfileOptions; use deno_semver::jsr::JsrDepPackageReq; use test_util as util; -use test_util::itest; use util::TestContext; use util::TestContextBuilder; -itest!(check_all { - args: "check --allow-import --quiet --all check/all/check_all.ts", - output: "check/all/check_all.out", - http_server: true, - exit_code: 1, -}); - -itest!(check_all_local { - args: "check --allow-import --quiet check/all/check_all.ts", - output_str: Some(""), - http_server: true, -}); - #[test] fn cache_switching_config_then_no_config() { let context = TestContext::default(); diff --git a/tests/specs/check/check_all/__test__.jsonc b/tests/specs/check/check_all/__test__.jsonc new file mode 100644 index 0000000000..101e5aab9e --- /dev/null +++ b/tests/specs/check/check_all/__test__.jsonc @@ -0,0 +1,5 @@ +{ + "args": "check --allow-import --quiet --all check_all.ts", + "output": "check_all.out", + "exitCode": 1 +} diff --git a/tests/testdata/check/all/check_all.out b/tests/specs/check/check_all/check_all.out similarity index 100% rename from tests/testdata/check/all/check_all.out rename to tests/specs/check/check_all/check_all.out diff --git a/tests/testdata/check/all/check_all.ts b/tests/specs/check/check_all/check_all.ts similarity index 100% rename from tests/testdata/check/all/check_all.ts rename to tests/specs/check/check_all/check_all.ts diff --git a/tests/specs/check/check_all_local/__test__.jsonc b/tests/specs/check/check_all_local/__test__.jsonc new file mode 100644 index 0000000000..0cd1c16acb --- /dev/null +++ b/tests/specs/check/check_all_local/__test__.jsonc @@ -0,0 +1,5 @@ +{ + "args": "check --allow-import --quiet check_all_local.ts", + "output": "", + "exitCode": 0 +} diff --git a/tests/specs/check/check_all_local/check_all_local.ts b/tests/specs/check/check_all_local/check_all_local.ts new file mode 100644 index 0000000000..2ae8c2692c --- /dev/null +++ b/tests/specs/check/check_all_local/check_all_local.ts @@ -0,0 +1,3 @@ +import * as a from "http://localhost:4545/subdir/type_error.ts"; + +console.log(a.a);