diff options
| author | David Sherret <dsherret@users.noreply.github.com> | 2024-01-13 16:06:18 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-01-13 16:06:18 -0500 |
| commit | d88c8699173020df2d9827a5ae62e168941902f4 (patch) | |
| tree | 03437e3497e29a98c915f6489974c6f7d06e56de /cli/tests/testdata | |
| parent | daed58855775b4da042272a296b500d9b9e76e7d (diff) | |
fix(check): should not panic when all specified files excluded (#21929)
Closes #21926
Diffstat (limited to 'cli/tests/testdata')
3 files changed, 9 insertions, 0 deletions
diff --git a/cli/tests/testdata/check/excluded_file_specified/check.out b/cli/tests/testdata/check/excluded_file_specified/check.out new file mode 100644 index 000000000..2bc26aaaf --- /dev/null +++ b/cli/tests/testdata/check/excluded_file_specified/check.out @@ -0,0 +1 @@ +Warning No matching files found. diff --git a/cli/tests/testdata/check/excluded_file_specified/deno.json b/cli/tests/testdata/check/excluded_file_specified/deno.json new file mode 100644 index 000000000..039be18df --- /dev/null +++ b/cli/tests/testdata/check/excluded_file_specified/deno.json @@ -0,0 +1,6 @@ +{ + "compilerOptions": { + "types": ["./lib/types.d.ts"] + }, + "exclude": ["lib"] +} diff --git a/cli/tests/testdata/check/excluded_file_specified/lib/types.d.ts b/cli/tests/testdata/check/excluded_file_specified/lib/types.d.ts new file mode 100644 index 000000000..a02ad0cbe --- /dev/null +++ b/cli/tests/testdata/check/excluded_file_specified/lib/types.d.ts @@ -0,0 +1,2 @@ +// deno-lint-ignore-file +declare var test: number; |
