-
Notifications
You must be signed in to change notification settings - Fork 5.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: deprecate check itests (#25963)
- Loading branch information
1 parent
d116709
commit 3c193ae
Showing
73 changed files
with
178 additions
and
107 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"args": "check --quiet broadcast_channel.ts", | ||
"output": "", | ||
"exitCode": 0 | ||
} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"args": "check --quiet deno_not_found/main.ts", | ||
"output": "deno_not_found/main.out", | ||
"exitCode": 1 | ||
} |
2 changes: 1 addition & 1 deletion
2
tests/testdata/check/deno_not_found/main.out → ...ck_deno_not_found/deno_not_found/main.out
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
error: TS2304 [ERROR]: Cannot find name 'Deno'. Do you need to change your target library? Try changing the 'lib' compiler option to include 'deno.ns' or add a triple-slash directive to the top of your entrypoint (main file): /// <reference lib="deno.ns" /> | ||
Deno; | ||
~~~~ | ||
at file:///[WILDCARD]/check/deno_not_found/main.ts:4:1 | ||
at file:///[WILDCARD]/deno_not_found/main.ts:4:1 |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"args": "check --quiet dts/check_dts.d.ts", | ||
"output": "dts/check_dts.out", | ||
"exitCode": 1 | ||
} |
File renamed without changes.
File renamed without changes.
5 changes: 5 additions & 0 deletions
5
tests/specs/check/check_imported_files_listed_in_exclude_option/__test__.jsonc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"args": "check --quiet --config exclude_option/deno.exclude_dir.json exclude_option/index.ts", | ||
"output": "exclude_option/exclude_option.ts.error.out", | ||
"exitCode": 1 | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 4 additions & 0 deletions
4
tests/specs/check/check_jsximportsource_importmap_config/__test__.jsonc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"args": "check --quiet --config jsximportsource_importmap_config/deno.json jsximportsource_importmap_config/main.tsx", | ||
"output": "" | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"args": "check --quiet no_error_truncation/main.ts --config no_error_truncation/deno.json", | ||
"output": "no_error_truncation/main.out", | ||
"exitCode": 1 | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
5 changes: 5 additions & 0 deletions
5
tests/specs/check/check_node_builtin_modules_js/__test__.jsonc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"args": "check --quiet node_builtin_modules/mod.js", | ||
"output": "node_builtin_modules/mod.js.out", | ||
"exitCode": 1 | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
5 changes: 5 additions & 0 deletions
5
tests/specs/check/check_node_builtin_modules_ts/__test__.jsonc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"args": "check --quiet node_builtin_modules/mod.ts", | ||
"output": "node_builtin_modules/mod.ts.out", | ||
"exitCode": 1 | ||
} |
3 changes: 3 additions & 0 deletions
3
tests/specs/check/check_node_builtin_modules_ts/node_builtin_modules/mod.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
// @ts-check | ||
import fs from "node:fs"; | ||
const _data = fs.readFileSync("./node_builtin.js", 123); |
5 changes: 5 additions & 0 deletions
5
tests/specs/check/check_node_builtin_modules_ts/node_builtin_modules/mod.js.out
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
error: TS2769 [ERROR]: No overload matches this call. | ||
[WILDCARD] | ||
const _data = fs.readFileSync("./node_builtin.js", 123); | ||
~~~ | ||
at file:///[WILDCARD]/node_builtin_modules/mod.js:3:52 |
9 changes: 9 additions & 0 deletions
9
tests/specs/check/check_node_builtin_modules_ts/node_builtin_modules/mod.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import fs from "node:fs"; | ||
const _data = fs.readFileSync("./node_builtin.js", 123); | ||
|
||
// check node:module specifically because for deno check it should | ||
// resolve to the @types/node package, but at runtime it uses a different | ||
// builtin object than deno_std | ||
import { builtinModules } from "node:module"; | ||
// should error about being string[] | ||
const _testString: number[] = builtinModules; |
13 changes: 13 additions & 0 deletions
13
tests/specs/check/check_node_builtin_modules_ts/node_builtin_modules/mod.ts.out
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
error: TS2769 [ERROR]: No overload matches this call. | ||
[WILDCARD] | ||
const _data = fs.readFileSync("./node_builtin.js", 123); | ||
~~~ | ||
at file:///[WILDCARD]/node_builtin_modules/mod.ts:2:52 | ||
|
||
TS2322 [ERROR]: Type 'string[]' is not assignable to type 'number[]'. | ||
Type 'string' is not assignable to type 'number'. | ||
const _testString: number[] = builtinModules; | ||
~~~~~~~~~~~ | ||
at file:///[WILDCARD]/node_builtin_modules/mod.ts:9:7 | ||
|
||
Found 2 errors. |
5 changes: 5 additions & 0 deletions
5
tests/specs/check/check_npm_install_diagnostics/__test__.jsonc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"args": "check --quiet npm_install_diagnostics/main.ts", | ||
"output": "npm_install_diagnostics/main.out", | ||
"exitCode": 1 | ||
} |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"args": "check --quiet response_json.ts", | ||
"output": "", | ||
"exitCode": 0 | ||
} |
File renamed without changes.
5 changes: 5 additions & 0 deletions
5
tests/specs/check/check_with_exclude_option_by_dir/__test__.jsonc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"args": "check --quiet --config exclude_option/deno.exclude_dir.json exclude_option/ignored/index.ts", | ||
"output": "", | ||
"exitCode": 0 | ||
} |
5 changes: 5 additions & 0 deletions
5
tests/specs/check/check_with_exclude_option_by_dir/exclude_option/deno.exclude_dir.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"exclude": [ | ||
"ignored" | ||
] | ||
} |
5 changes: 5 additions & 0 deletions
5
tests/specs/check/check_with_exclude_option_by_dir/exclude_option/deno.exclude_glob.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"exclude": [ | ||
"ignored/**/*" | ||
] | ||
} |
3 changes: 3 additions & 0 deletions
3
tests/specs/check/check_with_exclude_option_by_dir/exclude_option/deno.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"exclude": [] | ||
} |
4 changes: 4 additions & 0 deletions
4
...s/specs/check/check_with_exclude_option_by_dir/exclude_option/exclude_option.ts.error.out
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
error: TS2304 [ERROR]: Cannot find name 'nothing'. | ||
export { nothing }; | ||
~~~~~~~ | ||
at [WILDCARD] |
1 change: 1 addition & 0 deletions
1
tests/specs/check/check_with_exclude_option_by_dir/exclude_option/ignored/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { nothing }; |
5 changes: 5 additions & 0 deletions
5
tests/specs/check/check_with_exclude_option_by_dir/exclude_option/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import { nothing } from "./ignored/index.ts"; | ||
|
||
const foo = 1; | ||
|
||
export { foo, nothing }; |
5 changes: 5 additions & 0 deletions
5
tests/specs/check/check_with_exclude_option_by_glob/__test__.jsonc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"args": "check --quiet --config exclude_option/deno.exclude_glob.json exclude_option/ignored/index.ts", | ||
"output": "", | ||
"exitCode": 0 | ||
} |
5 changes: 5 additions & 0 deletions
5
tests/specs/check/check_with_exclude_option_by_glob/exclude_option/deno.exclude_dir.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"exclude": [ | ||
"ignored" | ||
] | ||
} |
5 changes: 5 additions & 0 deletions
5
tests/specs/check/check_with_exclude_option_by_glob/exclude_option/deno.exclude_glob.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"exclude": [ | ||
"ignored/**/*" | ||
] | ||
} |
3 changes: 3 additions & 0 deletions
3
tests/specs/check/check_with_exclude_option_by_glob/exclude_option/deno.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"exclude": [] | ||
} |
4 changes: 4 additions & 0 deletions
4
.../specs/check/check_with_exclude_option_by_glob/exclude_option/exclude_option.ts.error.out
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
error: TS2304 [ERROR]: Cannot find name 'nothing'. | ||
export { nothing }; | ||
~~~~~~~ | ||
at [WILDCARD] |
1 change: 1 addition & 0 deletions
1
tests/specs/check/check_with_exclude_option_by_glob/exclude_option/ignored/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { nothing }; |
5 changes: 5 additions & 0 deletions
5
tests/specs/check/check_with_exclude_option_by_glob/exclude_option/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import { nothing } from "./ignored/index.ts"; | ||
|
||
const foo = 1; | ||
|
||
export { foo, nothing }; |
5 changes: 5 additions & 0 deletions
5
tests/specs/check/check_without_exclude_option/__test__.jsonc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"args": "check --quiet --config exclude_option/deno.json exclude_option/ignored/index.ts", | ||
"output": "exclude_option/exclude_option.ts.error.out", | ||
"exitCode": 1 | ||
} |
5 changes: 5 additions & 0 deletions
5
tests/specs/check/check_without_exclude_option/exclude_option/deno.exclude_dir.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"exclude": [ | ||
"ignored" | ||
] | ||
} |
5 changes: 5 additions & 0 deletions
5
tests/specs/check/check_without_exclude_option/exclude_option/deno.exclude_glob.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"exclude": [ | ||
"ignored/**/*" | ||
] | ||
} |
3 changes: 3 additions & 0 deletions
3
tests/specs/check/check_without_exclude_option/exclude_option/deno.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"exclude": [] | ||
} |
4 changes: 4 additions & 0 deletions
4
tests/specs/check/check_without_exclude_option/exclude_option/exclude_option.ts.error.out
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
error: TS2304 [ERROR]: Cannot find name 'nothing'. | ||
export { nothing }; | ||
~~~~~~~ | ||
at [WILDCARD] |
1 change: 1 addition & 0 deletions
1
tests/specs/check/check_without_exclude_option/exclude_option/ignored/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { nothing }; |
5 changes: 5 additions & 0 deletions
5
tests/specs/check/check_without_exclude_option/exclude_option/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import { nothing } from "./ignored/index.ts"; | ||
|
||
const foo = 1; | ||
|
||
export { foo, nothing }; |
4 changes: 4 additions & 0 deletions
4
tests/specs/check/declaration_header_file_with_no_exports/__test__.jsonc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"args": "check --quiet declaration_header_file_with_no_exports.ts", | ||
"output": "" | ||
} |
File renamed without changes.
Empty file.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"args": "check jsx_not_checked/main.jsx", | ||
"output": "jsx_not_checked/main.out", | ||
"exitCode": 1 | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"args": "check --quiet module_detection_force/main.ts", | ||
"output": "" | ||
} |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters