summaryrefslogtreecommitdiff
path: root/cli/tests
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tests')
-rw-r--r--cli/tests/integration_tests.rs7
-rw-r--r--cli/tests/lock_check_err_with_bundle.json5
-rw-r--r--cli/tests/lock_check_err_with_bundle.out3
3 files changed, 15 insertions, 0 deletions
diff --git a/cli/tests/integration_tests.rs b/cli/tests/integration_tests.rs
index 651ffa110..562c25de2 100644
--- a/cli/tests/integration_tests.rs
+++ b/cli/tests/integration_tests.rs
@@ -1629,6 +1629,13 @@ itest!(lock_check_err2 {
http_server: true,
});
+itest!(lock_check_err_with_bundle {
+ args: "bundle --lock=lock_check_err_with_bundle.json http://127.0.0.1:4545/cli/tests/subdir/mod1.ts",
+ output: "lock_check_err_with_bundle.out",
+ exit_code: 10,
+ http_server: true,
+});
+
itest!(async_error {
exit_code: 1,
args: "run --reload async_error.ts",
diff --git a/cli/tests/lock_check_err_with_bundle.json b/cli/tests/lock_check_err_with_bundle.json
new file mode 100644
index 000000000..ae8f9dd9d
--- /dev/null
+++ b/cli/tests/lock_check_err_with_bundle.json
@@ -0,0 +1,5 @@
+{
+ "http://127.0.0.1:4545/cli/tests/subdir/mod1.ts": "f627f1649f9853adfa096241ae2defa75e4e327cbeb6af0e82a11304b3e5c8be",
+ "http://127.0.0.1:4545/cli/tests/subdir/print_hello.ts": "fe7bbccaedb6579200a8b582f905139296402d06b1b91109d6e12c41a23125da",
+ "http://127.0.0.1:4545/cli/tests/subdir/subdir2/mod2.ts": "bad"
+}
diff --git a/cli/tests/lock_check_err_with_bundle.out b/cli/tests/lock_check_err_with_bundle.out
new file mode 100644
index 000000000..ce0e029ef
--- /dev/null
+++ b/cli/tests/lock_check_err_with_bundle.out
@@ -0,0 +1,3 @@
+[WILDCARD]
+Subresource integrity check failed --lock=lock_check_err_with_bundle.json
+http://127.0.0.1:4545/cli/tests/subdir/subdir2/mod2.ts