summaryrefslogtreecommitdiff
path: root/cli/tests/integration/check_tests.rs
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2024-01-13 16:06:18 -0500
committerGitHub <noreply@github.com>2024-01-13 16:06:18 -0500
commitd88c8699173020df2d9827a5ae62e168941902f4 (patch)
tree03437e3497e29a98c915f6489974c6f7d06e56de /cli/tests/integration/check_tests.rs
parentdaed58855775b4da042272a296b500d9b9e76e7d (diff)
fix(check): should not panic when all specified files excluded (#21929)
Closes #21926
Diffstat (limited to 'cli/tests/integration/check_tests.rs')
-rw-r--r--cli/tests/integration/check_tests.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/cli/tests/integration/check_tests.rs b/cli/tests/integration/check_tests.rs
index 36b80149d..6b2bf96d4 100644
--- a/cli/tests/integration/check_tests.rs
+++ b/cli/tests/integration/check_tests.rs
@@ -161,6 +161,12 @@ itest!(check_imported_files_listed_in_exclude_option {
exit_code: 1,
});
+itest!(check_with_excluded_file_specified {
+ args: "check lib/types.d.ts",
+ cwd: Some("check/excluded_file_specified/"),
+ output: "check/excluded_file_specified/check.out",
+});
+
#[test]
fn cache_switching_config_then_no_config() {
let context = TestContext::default();