summaryrefslogtreecommitdiff
path: root/cli/tests/integration_tests.rs
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2020-07-02 17:54:51 +0200
committerGitHub <noreply@github.com>2020-07-02 17:54:51 +0200
commitcc12e86fe36a77ecb0bb836ba82e823ca26abdc2 (patch)
treef7d7b63ca25400d41755da5d7e73adc4565e7ce9 /cli/tests/integration_tests.rs
parent74c260517a40d9644960b01415824e1c6c646fde (diff)
refactor: lock file (#6569)
- refactor lock file creation - provide deterministic output in lock file (alphabetically sorted) - dynamic imports are checked against lock file
Diffstat (limited to 'cli/tests/integration_tests.rs')
-rw-r--r--cli/tests/integration_tests.rs13
1 files changed, 13 insertions, 0 deletions
diff --git a/cli/tests/integration_tests.rs b/cli/tests/integration_tests.rs
index 6f8299c92..6855df707 100644
--- a/cli/tests/integration_tests.rs
+++ b/cli/tests/integration_tests.rs
@@ -1562,6 +1562,12 @@ itest!(js_import_detect {
exit_code: 0,
});
+itest!(lock_write_requires_lock {
+ args: "run --lock-write some_file.ts",
+ output: "lock_write_requires_lock.out",
+ exit_code: 1,
+});
+
itest!(lock_write_fetch {
args:
"run --quiet --allow-read --allow-write --allow-env --allow-run lock_write_fetch.ts",
@@ -1582,6 +1588,13 @@ itest_ignore!(lock_check_ok2 {
http_server: true,
});
+itest!(lock_dynamic_imports {
+ args: "run --lock=lock_dynamic_imports.json --allow-read --allow-net http://127.0.0.1:4545/cli/tests/013_dynamic_import.ts",
+ output: "lock_dynamic_imports.out",
+ exit_code: 10,
+ 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",