summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/integration/npm_tests.rs2
-rw-r--r--tests/specs/lockfile/no_declaration_files/__test__.jsonc2
-rw-r--r--tests/specs/lockfile/no_declaration_files/main.cache.out1
-rw-r--r--tests/testdata/run/lock_write_fetch/file_exists.ts6
-rw-r--r--tests/testdata/run/lock_write_fetch/main.ts7
5 files changed, 4 insertions, 14 deletions
diff --git a/tests/integration/npm_tests.rs b/tests/integration/npm_tests.rs
index 7f5145a42..2babcb21e 100644
--- a/tests/integration/npm_tests.rs
+++ b/tests/integration/npm_tests.rs
@@ -1209,7 +1209,6 @@ fn lock_file_missing_top_level_package() {
#[test]
fn lock_file_lock_write() {
// https://github.com/denoland/deno/issues/16666
- // Ensure that --lock-write still adds npm packages to the lockfile
let _server = http_server();
let deno_dir = util::new_deno_dir();
@@ -1396,7 +1395,6 @@ fn lock_file_lock_write() {
let deno = util::deno_cmd_with_deno_dir(&deno_dir)
.current_dir(temp_dir.path())
.arg("cache")
- .arg("--lock-write")
.arg("--quiet")
.arg("npm:cowsay@1.5.0")
.envs(env_vars_for_npm_tests())
diff --git a/tests/specs/lockfile/no_declaration_files/__test__.jsonc b/tests/specs/lockfile/no_declaration_files/__test__.jsonc
index 8bbb55825..3238416b0 100644
--- a/tests/specs/lockfile/no_declaration_files/__test__.jsonc
+++ b/tests/specs/lockfile/no_declaration_files/__test__.jsonc
@@ -1,7 +1,7 @@
{
"tempDir": true,
"steps": [{
- "args": "cache --lock --lock-write main.ts",
+ "args": "cache --lock --frozen=false main.ts",
"output": "main.cache.out"
}, {
"args": [
diff --git a/tests/specs/lockfile/no_declaration_files/main.cache.out b/tests/specs/lockfile/no_declaration_files/main.cache.out
index 84e728d66..ee8ad33ab 100644
--- a/tests/specs/lockfile/no_declaration_files/main.cache.out
+++ b/tests/specs/lockfile/no_declaration_files/main.cache.out
@@ -1,3 +1,2 @@
-Warning "--lock-write" flag is deprecated and will be removed in Deno 2.
Download http://localhost:4545/lockfile/no_dts/mod.js
Download http://localhost:4545/lockfile/no_dts/mod.d.ts
diff --git a/tests/testdata/run/lock_write_fetch/file_exists.ts b/tests/testdata/run/lock_write_fetch/file_exists.ts
deleted file mode 100644
index 20de4d4f2..000000000
--- a/tests/testdata/run/lock_write_fetch/file_exists.ts
+++ /dev/null
@@ -1,6 +0,0 @@
-try {
- await Deno.open(Deno.args[0]);
- Deno.exit(0);
-} catch (_e) {
- Deno.exit(1);
-}
diff --git a/tests/testdata/run/lock_write_fetch/main.ts b/tests/testdata/run/lock_write_fetch/main.ts
index 57bc54d02..4ce631311 100644
--- a/tests/testdata/run/lock_write_fetch/main.ts
+++ b/tests/testdata/run/lock_write_fetch/main.ts
@@ -11,7 +11,6 @@ const fetchProc = await new Deno.Command(Deno.execPath(), {
"cache",
"--reload",
"--lock=lock_write_fetch.json",
- "--lock-write",
"--cert=tls/RootCA.pem",
"run/https_import.ts",
],
@@ -40,13 +39,13 @@ const runProc = await new Deno.Command(Deno.execPath(), {
args: [
"run",
"--lock=lock_write_fetch.json",
- "--lock-write",
"--allow-read",
- "run/lock_write_fetch/file_exists.ts",
- "lock_write_fetch.json",
+ "--cert=tls/RootCA.pem",
+ "run/https_import.ts",
],
}).output();
console.log(`run code: ${runProc.code}`);
+await Deno.stat("./lock_write_fetch.json");
Deno.removeSync("./lock_write_fetch.json");