From cc12e86fe36a77ecb0bb836ba82e823ca26abdc2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Thu, 2 Jul 2020 17:54:51 +0200 Subject: refactor: lock file (#6569) - refactor lock file creation - provide deterministic output in lock file (alphabetically sorted) - dynamic imports are checked against lock file --- cli/tests/integration_tests.rs | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'cli/tests/integration_tests.rs') 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", -- cgit v1.2.3