summaryrefslogtreecommitdiff
path: root/cli/tests
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tests')
-rw-r--r--cli/tests/integration/run_tests.rs7
-rw-r--r--cli/tests/testdata/useUnknownInCatchVariables.ts5
-rw-r--r--cli/tests/testdata/useUnknownInCatchVariables.ts.out5
3 files changed, 0 insertions, 17 deletions
diff --git a/cli/tests/integration/run_tests.rs b/cli/tests/integration/run_tests.rs
index b7480c44b..f290c6e62 100644
--- a/cli/tests/integration/run_tests.rs
+++ b/cli/tests/integration/run_tests.rs
@@ -1367,13 +1367,6 @@ itest!(error_import_map_unable_to_load {
exit_code: 1,
});
-// This test ensure that useUnknownInCatchVariables is enabled by default.
-itest!(use_unknown_in_catch_variables {
- args: "run useUnknownInCatchVariables.ts",
- output: "useUnknownInCatchVariables.ts.out",
- exit_code: 1,
-});
-
// Test that setting `self` in the main thread to some other value doesn't break
// the world.
itest!(replace_self {
diff --git a/cli/tests/testdata/useUnknownInCatchVariables.ts b/cli/tests/testdata/useUnknownInCatchVariables.ts
deleted file mode 100644
index abab554a4..000000000
--- a/cli/tests/testdata/useUnknownInCatchVariables.ts
+++ /dev/null
@@ -1,5 +0,0 @@
-try {
- throw new Error();
-} catch (e) {
- console.log(e.message);
-}
diff --git a/cli/tests/testdata/useUnknownInCatchVariables.ts.out b/cli/tests/testdata/useUnknownInCatchVariables.ts.out
deleted file mode 100644
index 3c29d3229..000000000
--- a/cli/tests/testdata/useUnknownInCatchVariables.ts.out
+++ /dev/null
@@ -1,5 +0,0 @@
-[WILDCARD]
-error: TS2571 [ERROR]: Object is of type 'unknown'.
- console.log(e.message);
- ^
- at file://[WILDCARD]/useUnknownInCatchVariables.ts:4:15