mirror of
https://github.com/denoland/deno.git
synced 2024-11-21 15:04:11 -05:00
chore: deprecate itest in check tests
This commit is contained in:
parent
0b8df9f24d
commit
dded2a57ff
6 changed files with 13 additions and 14 deletions
|
@ -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();
|
||||||
|
|
5
tests/specs/check/check_all/__test__.jsonc
Normal file
5
tests/specs/check/check_all/__test__.jsonc
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
{
|
||||||
|
"args": "check --allow-import --quiet --all check_all.ts",
|
||||||
|
"output": "check_all.out",
|
||||||
|
"exitCode": 1
|
||||||
|
}
|
5
tests/specs/check/check_all_local/__test__.jsonc
Normal file
5
tests/specs/check/check_all_local/__test__.jsonc
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
{
|
||||||
|
"args": "check --allow-import --quiet check_all_local.ts",
|
||||||
|
"output": "",
|
||||||
|
"exitCode": 0
|
||||||
|
}
|
3
tests/specs/check/check_all_local/check_all_local.ts
Normal file
3
tests/specs/check/check_all_local/check_all_local.ts
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
import * as a from "http://localhost:4545/subdir/type_error.ts";
|
||||||
|
|
||||||
|
console.log(a.a);
|
Loading…
Reference in a new issue