From b03d82e5d34ed11185fd3b9ce4db7bb838c65658 Mon Sep 17 00:00:00 2001 From: David Sherret Date: Thu, 13 Jul 2023 19:29:51 -0400 Subject: 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. --- cli/tests/integration/check_tests.rs | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'cli/tests/integration/check_tests.rs') 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(); -- cgit v1.2.3