diff options
| author | David Sherret <dsherret@users.noreply.github.com> | 2023-03-11 11:43:45 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-03-11 11:43:45 -0500 |
| commit | 8db853514caae431a0ce91360d854c1b7f3c405f (patch) | |
| tree | 4173976ce6c836b715af22c9aeb9f336debb8544 /cli/tests/integration | |
| parent | e4430400ced48529730a8752c547b613a23c76ce (diff) | |
fix(check): regression where config "types" entries caused type checking errors (#18124)
Closes #18117
Closes #18121 (this is just over 10ms faster in a directory one up from
the root folder)
cc @nayeemrmn
Diffstat (limited to 'cli/tests/integration')
| -rw-r--r-- | cli/tests/integration/check_tests.rs | 17 | ||||
| -rw-r--r-- | cli/tests/integration/run_tests.rs | 10 |
2 files changed, 17 insertions, 10 deletions
diff --git a/cli/tests/integration/check_tests.rs b/cli/tests/integration/check_tests.rs index f2fe882eb..d1148b244 100644 --- a/cli/tests/integration/check_tests.rs +++ b/cli/tests/integration/check_tests.rs @@ -26,14 +26,14 @@ itest!(check_random_extension { }); itest!(check_all { - args: "check --quiet --all check/check_all.ts", - output: "check/check_all.out", + args: "check --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 --quiet check/check_all.ts", + args: "check --quiet check/all/check_all.ts", output_str: Some(""), http_server: true, }); @@ -233,11 +233,18 @@ fn ts_no_recheck_on_redirect() { } itest!(check_dts { - args: "check --quiet check/check_dts.d.ts", - output: "check/check_dts.out", + args: "check --quiet check/dts/check_dts.d.ts", + output: "check/dts/check_dts.out", exit_code: 1, }); +itest!(check_types_dts { + args: "check main.ts", + cwd: Some("check/types_dts/"), + output: "check/types_dts/main.out", + exit_code: 0, +}); + itest!(package_json_basic { args: "check main.ts", output: "package_json/basic/main.check.out", diff --git a/cli/tests/integration/run_tests.rs b/cli/tests/integration/run_tests.rs index c3a2c45a7..0e1516cc3 100644 --- a/cli/tests/integration/run_tests.rs +++ b/cli/tests/integration/run_tests.rs @@ -826,15 +826,15 @@ itest!(config { itest!(config_types { args: - "run --reload --quiet --config run/config_types/tsconfig.json run/config_types/main.ts", + "run --reload --quiet --check=all --config run/config_types/tsconfig.json run/config_types/main.ts", output: "run/config_types/main.out", }); itest!(config_types_remote { - http_server: true, - args: "run --reload --quiet --config run/config_types/remote.tsconfig.json run/config_types/main.ts", - output: "run/config_types/main.out", - }); + http_server: true, + args: "run --reload --quiet --check=all --config run/config_types/remote.tsconfig.json run/config_types/main.ts", + output: "run/config_types/main.out", +}); itest!(empty_typescript { args: "run --reload --check run/empty.ts", |
