summaryrefslogtreecommitdiff
path: root/cli/tests/integration_tests.rs
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tests/integration_tests.rs')
-rw-r--r--cli/tests/integration_tests.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/cli/tests/integration_tests.rs b/cli/tests/integration_tests.rs
index 5cbe00302..f2d1c1770 100644
--- a/cli/tests/integration_tests.rs
+++ b/cli/tests/integration_tests.rs
@@ -3841,6 +3841,17 @@ console.log("finish");
http_server: true,
});
+ // This test ensures that a descriptive error is shown when we're unable to load
+ // the import map. Even though this tests only the `run` subcommand, we can be sure
+ // that the error message is similar for other subcommands as they all use
+ // `program_state.maybe_import_map` to access the import map underneath.
+ itest!(error_import_map_unable_to_load {
+ args:
+ "run --import-map=import_maps/does_not_exist.json import_maps/test.ts",
+ output: "error_import_map_unable_to_load.out",
+ exit_code: 1,
+ });
+
#[test]
fn no_validate_asm() {
let output = util::deno_cmd()