diff options
| author | Yazan AbdAl-Rahman <yazan.abdalrahman@exalt.ps> | 2024-08-20 21:38:06 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-08-20 18:38:06 +0000 |
| commit | a7c8bb1596411f91e20ddd5cd54c9dbd055d1059 (patch) | |
| tree | 408ed9e2935b4749820c30314087e801b0c280c4 /tests/specs/check | |
| parent | 1f47248143b2298d38dbada5b431570c067ed663 (diff) | |
feat: glob and directory support for `deno check` and `deno cache` cli arg paths (#25001)
Closes #24668
Closes #20813
---------
Co-authored-by: David Sherret <dsherret@gmail.com>
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 = ""; |
