summaryrefslogtreecommitdiff
path: root/cli/tests/integration/check_tests.rs
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2023-07-13 19:29:51 -0400
committerGitHub <noreply@github.com>2023-07-13 23:29:51 +0000
commitb03d82e5d34ed11185fd3b9ce4db7bb838c65658 (patch)
treeea4d490606168f6bd91f89e16b970b4b3a37ae19 /cli/tests/integration/check_tests.rs
parent8465bd0037acbaac0c7dfab6a8c6dbf47539934e (diff)
fix(tsc): more informative diagnostic when `Deno` does not exist (#19825)
Also improved the diagnostic when using something like `Deno.openKv` and it doesn't exist.
Diffstat (limited to 'cli/tests/integration/check_tests.rs')
-rw-r--r--cli/tests/integration/check_tests.rs12
1 files changed, 12 insertions, 0 deletions
diff --git a/cli/tests/integration/check_tests.rs b/cli/tests/integration/check_tests.rs
index 0f1c8cb59..1b00cadbe 100644
--- a/cli/tests/integration/check_tests.rs
+++ b/cli/tests/integration/check_tests.rs
@@ -105,6 +105,18 @@ itest!(check_broadcast_channel_unstable {
exit_code: 0,
});
+itest!(check_deno_not_found {
+ args: "check --quiet check/deno_not_found/main.ts",
+ output: "check/deno_not_found/main.out",
+ exit_code: 1,
+});
+
+itest!(check_deno_unstable_not_found {
+ args: "check --quiet check/deno_unstable_not_found/main.ts",
+ output: "check/deno_unstable_not_found/main.out",
+ exit_code: 1,
+});
+
#[test]
fn cache_switching_config_then_no_config() {
let context = TestContext::default();