summaryrefslogtreecommitdiff
path: root/cli/tests/integration_tests.rs
diff options
context:
space:
mode:
authorRy Dahl <ry@tinyclouds.org>2019-11-03 10:39:27 -0500
committerGitHub <noreply@github.com>2019-11-03 10:39:27 -0500
commit86b3ac5108e2893091475a0318fcba6c14e19140 (patch)
tree11c977dcad8271cc047e5707130b0811507370c4 /cli/tests/integration_tests.rs
parent65e91796720ea68d69ac7f925a8f239aee8fb19e (diff)
feat: lockfiles (#3231)
Use --lock-write=lock.json or --lock-check=lock.json on the command line.
Diffstat (limited to 'cli/tests/integration_tests.rs')
-rw-r--r--cli/tests/integration_tests.rs28
1 files changed, 28 insertions, 0 deletions
diff --git a/cli/tests/integration_tests.rs b/cli/tests/integration_tests.rs
index 503287716..dd9388014 100644
--- a/cli/tests/integration_tests.rs
+++ b/cli/tests/integration_tests.rs
@@ -352,6 +352,34 @@ itest!(_050_more_jsons {
output: "050_more_jsons.ts.out",
});
+itest!(lock_check_ok {
+ args: "run --lock=lock_check_ok.json http://127.0.0.1:4545/cli/tests/003_relative_import.ts",
+ output: "003_relative_import.ts.out",
+ http_server: true,
+});
+
+itest!(lock_check_ok2 {
+ args: "run 019_media_types.ts --lock=lock_check_ok2.json",
+ output: "019_media_types.ts.out",
+ http_server: true,
+});
+
+itest!(lock_check_err {
+ args: "run --lock=lock_check_err.json http://127.0.0.1:4545/cli/tests/003_relative_import.ts",
+ output: "lock_check_err.out",
+ check_stderr: true,
+ exit_code: 10,
+ http_server: true,
+});
+
+itest!(lock_check_err2 {
+ args: "run 019_media_types.ts --lock=lock_check_err2.json",
+ output: "lock_check_err2.out",
+ check_stderr: true,
+ exit_code: 10,
+ http_server: true,
+});
+
itest!(async_error {
exit_code: 1,
args: "run --reload async_error.ts",