1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-01-18 03:44:05 -05:00

chore(tests): Deprecate remaining usages of itest in check tests (#26962)

This PR progresses #22907 by deprecating the usage of `itest` in
`tests/integration/check_tests.rs`
This commit is contained in:
ingalless 2024-12-10 22:41:24 +00:00 committed by GitHub
parent 4ab668ed06
commit fe1be715d8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 14 additions and 15 deletions

View file

@ -3,23 +3,9 @@
use deno_lockfile::NewLockfileOptions; use deno_lockfile::NewLockfileOptions;
use deno_semver::jsr::JsrDepPackageReq; use deno_semver::jsr::JsrDepPackageReq;
use test_util as util; use test_util as util;
use test_util::itest;
use util::TestContext; use util::TestContext;
use util::TestContextBuilder; 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] #[test]
fn cache_switching_config_then_no_config() { fn cache_switching_config_then_no_config() {
let context = TestContext::default(); let context = TestContext::default();

View file

@ -0,0 +1,5 @@
{
"args": "check --allow-import --quiet --all check_all.ts",
"output": "check_all.out",
"exitCode": 1
}

View file

@ -0,0 +1,5 @@
{
"args": "check --allow-import --quiet check_all_local.ts",
"output": "",
"exitCode": 0
}

View file

@ -0,0 +1,3 @@
import * as a from "http://localhost:4545/subdir/type_error.ts";
console.log(a.a);

View file

@ -211,7 +211,7 @@ async function ensureNoNewITests() {
"bench_tests.rs": 0, "bench_tests.rs": 0,
"cache_tests.rs": 0, "cache_tests.rs": 0,
"cert_tests.rs": 0, "cert_tests.rs": 0,
"check_tests.rs": 2, "check_tests.rs": 0,
"compile_tests.rs": 0, "compile_tests.rs": 0,
"coverage_tests.rs": 0, "coverage_tests.rs": 0,
"eval_tests.rs": 0, "eval_tests.rs": 0,