diff options
Diffstat (limited to 'tests/specs/check')
| -rw-r--r-- | tests/specs/check/globbing/__test__.jsonc | 24 | ||||
| -rw-r--r-- | tests/specs/check/globbing/excluded.tsx | 0 | ||||
| -rw-r--r-- | tests/specs/check/globbing/main.ts | 1 | ||||
| -rw-r--r-- | tests/specs/check/globbing/sub_dir/main.ts | 1 |
4 files changed, 26 insertions, 0 deletions
diff --git a/tests/specs/check/globbing/__test__.jsonc b/tests/specs/check/globbing/__test__.jsonc new file mode 100644 index 000000000..92d9f4d80 --- /dev/null +++ b/tests/specs/check/globbing/__test__.jsonc @@ -0,0 +1,24 @@ +{ + "tests": { + "star": { + "args": "check *.ts", + "output": "Check [WILDLINE]main.ts\n", + "exitCode": 0 + }, + "star_not_found": { + "args": "check *.js", + "output": "Warning No matching files found.\n", + "exitCode": 0 + }, + "glob_star": { + "args": "check **/*.ts", + "output": "Check [WILDLINE]main.ts\nCheck [WILDLINE]sub_dir/main.ts\nerror: TS2322[WILDCARD]", + "exitCode": 1 + }, + "sub_dir": { + "args": "check sub_dir", + "output": "Check [WILDLINE]sub_dir/main.ts\nerror: TS2322[WILDCARD]", + "exitCode": 1 + } + } +} diff --git a/tests/specs/check/globbing/excluded.tsx b/tests/specs/check/globbing/excluded.tsx new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/tests/specs/check/globbing/excluded.tsx diff --git a/tests/specs/check/globbing/main.ts b/tests/specs/check/globbing/main.ts new file mode 100644 index 000000000..efa57a7ed --- /dev/null +++ b/tests/specs/check/globbing/main.ts @@ -0,0 +1 @@ +console.log("globbing_support_done"); diff --git a/tests/specs/check/globbing/sub_dir/main.ts b/tests/specs/check/globbing/sub_dir/main.ts new file mode 100644 index 000000000..4f4c3ce9c --- /dev/null +++ b/tests/specs/check/globbing/sub_dir/main.ts @@ -0,0 +1 @@ +const value: number = ""; |
