summaryrefslogtreecommitdiff
path: root/tests/specs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/specs')
-rw-r--r--tests/specs/lockfile/adding_jsr_dep/lock01.out17
-rw-r--r--tests/specs/lockfile/adding_jsr_dep/lock02.out23
-rw-r--r--tests/specs/lockfile/adding_jsr_export_new_dep/lock01.out29
-rw-r--r--tests/specs/lockfile/adding_jsr_export_new_dep/lock02.out39
-rw-r--r--tests/specs/lockfile/adding_npm_dep/lock01.out18
-rw-r--r--tests/specs/lockfile/adding_npm_dep/lock02.out25
-rw-r--r--tests/specs/lockfile/adding_redirect/lock01.out2
-rw-r--r--tests/specs/lockfile/adding_redirect/lock02.out2
-rw-r--r--tests/specs/lockfile/frozen_lockfile/frozen_new_dep_cache.out17
-rw-r--r--tests/specs/lockfile/frozen_lockfile/frozen_new_dep_dynamic_http.out9
-rw-r--r--tests/specs/lockfile/frozen_lockfile/frozen_new_dep_dynamic_jsr.out16
-rw-r--r--tests/specs/lockfile/frozen_lockfile/frozen_new_dep_dynamic_npm.out17
-rw-r--r--tests/specs/lockfile/frozen_lockfile/frozen_new_dep_jsr_cache.out20
-rw-r--r--tests/specs/lockfile/frozen_lockfile/frozen_new_dep_jsr_run.out20
-rw-r--r--tests/specs/lockfile/frozen_lockfile/frozen_new_dep_run.out17
-rw-r--r--tests/specs/lockfile/frozen_lockfile/no_lockfile_run.out26
-rw-r--r--tests/specs/lockfile/no_declaration_files/__test__.jsonc13
-rw-r--r--tests/specs/lockfile/no_declaration_files/deno.lock.out6
-rw-r--r--tests/specs/lockfile/no_declaration_files/main.cache.out3
-rw-r--r--tests/specs/lockfile/no_declaration_files/main.ts3
-rw-r--r--tests/specs/lockfile/only_package_json/deno.lock.out15
-rw-r--r--tests/specs/npm/adding_npm_dep_in_dynamic_import/lock.out27
-rw-r--r--tests/specs/remove/basic/add_lock.out23
-rw-r--r--tests/specs/remove/basic/remove_lock.out3
-rw-r--r--tests/specs/workspaces/lockfile/expected-lock.out17
25 files changed, 195 insertions, 212 deletions
diff --git a/tests/specs/lockfile/adding_jsr_dep/lock01.out b/tests/specs/lockfile/adding_jsr_dep/lock01.out
index 0ac007526..fcdb22ae1 100644
--- a/tests/specs/lockfile/adding_jsr_dep/lock01.out
+++ b/tests/specs/lockfile/adding_jsr_dep/lock01.out
@@ -1,16 +1,13 @@
{
- "version": "3",
- "packages": {
- "specifiers": {
- "jsr:@denotest/add@1": "jsr:@denotest/add@1.0.0"
- },
- "jsr": {
- "@denotest/add@1.0.0": {
- "integrity": "[WILDLINE]"
- }
+ "version": "4",
+ "specifiers": {
+ "jsr:@denotest/add@1": "jsr:@denotest/add@1.0.0"
+ },
+ "jsr": {
+ "@denotest/add@1.0.0": {
+ "integrity": "[WILDLINE]"
}
},
- "remote": {},
"workspace": {
"dependencies": [
"jsr:@denotest/add@1",
diff --git a/tests/specs/lockfile/adding_jsr_dep/lock02.out b/tests/specs/lockfile/adding_jsr_dep/lock02.out
index 4293c7dfe..f069c5a2f 100644
--- a/tests/specs/lockfile/adding_jsr_dep/lock02.out
+++ b/tests/specs/lockfile/adding_jsr_dep/lock02.out
@@ -1,20 +1,17 @@
{
- "version": "3",
- "packages": {
- "specifiers": {
- "jsr:@denotest/add@1": "jsr:@denotest/add@1.0.0",
- "jsr:@denotest/subtract@1": "jsr:@denotest/subtract@1.0.0"
+ "version": "4",
+ "specifiers": {
+ "jsr:@denotest/add@1": "jsr:@denotest/add@1.0.0",
+ "jsr:@denotest/subtract@1": "jsr:@denotest/subtract@1.0.0"
+ },
+ "jsr": {
+ "@denotest/add@1.0.0": {
+ "integrity": "[WILDLINE]"
},
- "jsr": {
- "@denotest/add@1.0.0": {
- "integrity": "[WILDLINE]"
- },
- "@denotest/subtract@1.0.0": {
- "integrity": "[WILDLINE]"
- }
+ "@denotest/subtract@1.0.0": {
+ "integrity": "[WILDLINE]"
}
},
- "remote": {},
"workspace": {
"dependencies": [
"jsr:@denotest/add@1",
diff --git a/tests/specs/lockfile/adding_jsr_export_new_dep/lock01.out b/tests/specs/lockfile/adding_jsr_export_new_dep/lock01.out
index e78ea355a..a2ce254a3 100644
--- a/tests/specs/lockfile/adding_jsr_export_new_dep/lock01.out
+++ b/tests/specs/lockfile/adding_jsr_export_new_dep/lock01.out
@@ -1,23 +1,20 @@
{
- "version": "3",
- "packages": {
- "specifiers": {
- "jsr:@denotest/add@1": "jsr:@denotest/add@1.0.0",
- "jsr:@denotest/different-deps-per-export@1": "jsr:@denotest/different-deps-per-export@1.0.0"
+ "version": "4",
+ "specifiers": {
+ "jsr:@denotest/add@1": "jsr:@denotest/add@1.0.0",
+ "jsr:@denotest/different-deps-per-export@1": "jsr:@denotest/different-deps-per-export@1.0.0"
+ },
+ "jsr": {
+ "@denotest/add@1.0.0": {
+ "integrity": "[WILDLINE]"
},
- "jsr": {
- "@denotest/add@1.0.0": {
- "integrity": "[WILDLINE]"
- },
- "@denotest/different-deps-per-export@1.0.0": {
- "integrity": "[WILDLINE]",
- "dependencies": [
- "jsr:@denotest/add@1"
- ]
- }
+ "@denotest/different-deps-per-export@1.0.0": {
+ "integrity": "[WILDLINE]",
+ "dependencies": [
+ "jsr:@denotest/add"
+ ]
}
},
- "remote": {},
"workspace": {
"dependencies": [
"jsr:@denotest/different-deps-per-export@1"
diff --git a/tests/specs/lockfile/adding_jsr_export_new_dep/lock02.out b/tests/specs/lockfile/adding_jsr_export_new_dep/lock02.out
index 0f4a388c6..d4825c32d 100644
--- a/tests/specs/lockfile/adding_jsr_export_new_dep/lock02.out
+++ b/tests/specs/lockfile/adding_jsr_export_new_dep/lock02.out
@@ -1,28 +1,25 @@
{
- "version": "3",
- "packages": {
- "specifiers": {
- "jsr:@denotest/add@1": "jsr:@denotest/add@1.0.0",
- "jsr:@denotest/different-deps-per-export@1": "jsr:@denotest/different-deps-per-export@1.0.0",
- "jsr:@denotest/subtract@1": "jsr:@denotest/subtract@1.0.0"
+ "version": "4",
+ "specifiers": {
+ "jsr:@denotest/add@1": "jsr:@denotest/add@1.0.0",
+ "jsr:@denotest/different-deps-per-export@1": "jsr:@denotest/different-deps-per-export@1.0.0",
+ "jsr:@denotest/subtract@1": "jsr:@denotest/subtract@1.0.0"
+ },
+ "jsr": {
+ "@denotest/add@1.0.0": {
+ "integrity": "[WILDLINE]"
+ },
+ "@denotest/different-deps-per-export@1.0.0": {
+ "integrity": "[WILDLINE]",
+ "dependencies": [
+ "jsr:@denotest/add",
+ "jsr:@denotest/subtract"
+ ]
},
- "jsr": {
- "@denotest/add@1.0.0": {
- "integrity": "[WILDLINE]"
- },
- "@denotest/different-deps-per-export@1.0.0": {
- "integrity": "[WILDLINE]",
- "dependencies": [
- "jsr:@denotest/add@1",
- "jsr:@denotest/subtract@1"
- ]
- },
- "@denotest/subtract@1.0.0": {
- "integrity": "[WILDLINE]"
- }
+ "@denotest/subtract@1.0.0": {
+ "integrity": "[WILDLINE]"
}
},
- "remote": {},
"workspace": {
"dependencies": [
"jsr:@denotest/different-deps-per-export@1"
diff --git a/tests/specs/lockfile/adding_npm_dep/lock01.out b/tests/specs/lockfile/adding_npm_dep/lock01.out
index 5d5567dc0..0ed6aa8c7 100644
--- a/tests/specs/lockfile/adding_npm_dep/lock01.out
+++ b/tests/specs/lockfile/adding_npm_dep/lock01.out
@@ -1,17 +1,13 @@
{
- "version": "3",
- "packages": {
- "specifiers": {
- "npm:@denotest/add@1": "npm:@denotest/add@1.0.0"
- },
- "npm": {
- "@denotest/add@1.0.0": {
- "integrity": "[WILDLINE]",
- "dependencies": {}
- }
+ "version": "4",
+ "specifiers": {
+ "npm:@denotest/add@1": "npm:@denotest/add@1.0.0"
+ },
+ "npm": {
+ "@denotest/add@1.0.0": {
+ "integrity": "[WILDLINE]"
}
},
- "remote": {},
"workspace": {
"dependencies": [
"npm:@denotest/add@1",
diff --git a/tests/specs/lockfile/adding_npm_dep/lock02.out b/tests/specs/lockfile/adding_npm_dep/lock02.out
index 6042b1cb9..7a9da8d29 100644
--- a/tests/specs/lockfile/adding_npm_dep/lock02.out
+++ b/tests/specs/lockfile/adding_npm_dep/lock02.out
@@ -1,22 +1,17 @@
{
- "version": "3",
- "packages": {
- "specifiers": {
- "npm:@denotest/add@1": "npm:@denotest/add@1.0.0",
- "npm:@denotest/subtract@1": "npm:@denotest/subtract@1.0.0"
+ "version": "4",
+ "specifiers": {
+ "npm:@denotest/add@1": "npm:@denotest/add@1.0.0",
+ "npm:@denotest/subtract@1": "npm:@denotest/subtract@1.0.0"
+ },
+ "npm": {
+ "@denotest/add@1.0.0": {
+ "integrity": "[WILDLINE]"
},
- "npm": {
- "@denotest/add@1.0.0": {
- "integrity": "[WILDLINE]",
- "dependencies": {}
- },
- "@denotest/subtract@1.0.0": {
- "integrity": "[WILDLINE]",
- "dependencies": {}
- }
+ "@denotest/subtract@1.0.0": {
+ "integrity": "[WILDLINE]"
}
},
- "remote": {},
"workspace": {
"dependencies": [
"npm:@denotest/add@1",
diff --git a/tests/specs/lockfile/adding_redirect/lock01.out b/tests/specs/lockfile/adding_redirect/lock01.out
index f00cefa6a..b7b217cd6 100644
--- a/tests/specs/lockfile/adding_redirect/lock01.out
+++ b/tests/specs/lockfile/adding_redirect/lock01.out
@@ -1,5 +1,5 @@
{
- "version": "3",
+ "version": "4",
"remote": {
"http://localhost:4545/welcome.ts": "7353d5fcbc36c45d26bcbca478cf973092523b07c45999f41319820092b4de31"
}
diff --git a/tests/specs/lockfile/adding_redirect/lock02.out b/tests/specs/lockfile/adding_redirect/lock02.out
index 70c38c966..1c0227cb9 100644
--- a/tests/specs/lockfile/adding_redirect/lock02.out
+++ b/tests/specs/lockfile/adding_redirect/lock02.out
@@ -1,5 +1,5 @@
{
- "version": "3",
+ "version": "4",
"redirects": {
"http://localhost:4546/welcome.ts": "http://localhost:4545/welcome.ts"
},
diff --git a/tests/specs/lockfile/frozen_lockfile/frozen_new_dep_cache.out b/tests/specs/lockfile/frozen_lockfile/frozen_new_dep_cache.out
index bf6c03367..a66e090a2 100644
--- a/tests/specs/lockfile/frozen_lockfile/frozen_new_dep_cache.out
+++ b/tests/specs/lockfile/frozen_lockfile/frozen_new_dep_cache.out
@@ -1,11 +1,10 @@
error: The lockfile is out of date. Run `deno cache --frozen=false` or rerun with `--frozen=false` to update it.
changes:
- 5 | - "npm:@denotest/add@1": "npm:@denotest/add@1.0.0"
- 5 | + "npm:@denotest/add@1": "npm:@denotest/add@1.0.0",
- 6 | + "npm:@denotest/subtract@1": "npm:@denotest/subtract@1.0.0"
-11 | - }
-12 | + },
-13 | + "@denotest/subtract@1.0.0": {
-14 | + "integrity": "[WILDCARD]",
-15 | + "dependencies": {}
-16 | + }
+ 4 | - "npm:@denotest/add@1": "npm:@denotest/add@1.0.0"
+ 4 | + "npm:@denotest/add@1": "npm:@denotest/add@1.0.0",
+ 5 | + "npm:@denotest/subtract@1": "npm:@denotest/subtract@1.0.0"
+ 9 | - }
+10 | + },
+11 | + "@denotest/subtract@1.0.0": {
+12 | + "integrity": "[WILDCARD]"
+13 | + }
diff --git a/tests/specs/lockfile/frozen_lockfile/frozen_new_dep_dynamic_http.out b/tests/specs/lockfile/frozen_lockfile/frozen_new_dep_dynamic_http.out
index 99c884e9c..3ec45581a 100644
--- a/tests/specs/lockfile/frozen_lockfile/frozen_new_dep_dynamic_http.out
+++ b/tests/specs/lockfile/frozen_lockfile/frozen_new_dep_dynamic_http.out
@@ -1,10 +1,11 @@
Download http://localhost:4545/welcome.ts
error: Uncaught (in promise) TypeError: The lockfile is out of date. Run `deno cache --frozen=false` or rerun with `--frozen=false` to update it.
changes:
-14 | - "remote": {}
-14 | + "remote": {
-15 | + "http://localhost:4545/welcome.ts": "[WILDCARD]"
-16 | + }
+10 | - }
+10 | + },
+11 | + "remote": {
+12 | + "http://localhost:4545/welcome.ts": "[WILDCARD]"
+13 | + }
const _ = await import(scheme + "localhost:4545/welcome.ts");
^
at [WILDCARD] \ No newline at end of file
diff --git a/tests/specs/lockfile/frozen_lockfile/frozen_new_dep_dynamic_jsr.out b/tests/specs/lockfile/frozen_lockfile/frozen_new_dep_dynamic_jsr.out
index e77853ab2..7051ecbfa 100644
--- a/tests/specs/lockfile/frozen_lockfile/frozen_new_dep_dynamic_jsr.out
+++ b/tests/specs/lockfile/frozen_lockfile/frozen_new_dep_dynamic_jsr.out
@@ -3,14 +3,14 @@ Download http://127.0.0.1:4250/@denotest/add/1.0.0_meta.json
Download http://127.0.0.1:4250/@denotest/add/1.0.0/mod.ts
error: Uncaught (in promise) TypeError: The lockfile is out of date. Run `deno cache --frozen=false` or rerun with `--frozen=false` to update it.
changes:
- 5 | - "npm:@denotest/add@1": "npm:@denotest/add@1.0.0"
- 5 | + "jsr:@denotest/add@1": "jsr:@denotest/add@1.0.0",
- 6 | + "npm:@denotest/add@1": "npm:@denotest/add@1.0.0"
- 7 | + },
- 8 | + "jsr": {
- 9 | + "@denotest/add@1.0.0": {
-10 | + "integrity": "[WILDCARD]"
-11 | + }
+ 4 | - "npm:@denotest/add@1": "npm:@denotest/add@1.0.0"
+ 4 | + "jsr:@denotest/add@1": "jsr:@denotest/add@1.0.0",
+ 5 | + "npm:@denotest/add@1": "npm:@denotest/add@1.0.0"
+ 6 | + },
+ 7 | + "jsr": {
+ 8 | + "@denotest/add@1.0.0": {
+ 9 | + "integrity": "[WILDCARD]"
+10 | + }
const { add } = await import(scheme + "@denotest/add@1");
^
at [WILDCARD] \ No newline at end of file
diff --git a/tests/specs/lockfile/frozen_lockfile/frozen_new_dep_dynamic_npm.out b/tests/specs/lockfile/frozen_lockfile/frozen_new_dep_dynamic_npm.out
index 9b2efa462..749c69587 100644
--- a/tests/specs/lockfile/frozen_lockfile/frozen_new_dep_dynamic_npm.out
+++ b/tests/specs/lockfile/frozen_lockfile/frozen_new_dep_dynamic_npm.out
@@ -1,15 +1,14 @@
Download http://localhost:4260/@denotest/subtract
error: Uncaught (in promise) TypeError: The lockfile is out of date. Run `deno cache --frozen=false` or rerun with `--frozen=false` to update it.
changes:
- 5 | - "npm:@denotest/add@1": "npm:@denotest/add@1.0.0"
- 5 | + "npm:@denotest/add@1": "npm:@denotest/add@1.0.0",
- 6 | + "npm:@denotest/subtract@1": "npm:@denotest/subtract@1.0.0"
-11 | - }
-12 | + },
-13 | + "@denotest/subtract@1.0.0": {
-14 | + "integrity": "[WILDCARD]",
-15 | + "dependencies": {}
-16 | + }
+ 4 | - "npm:@denotest/add@1": "npm:@denotest/add@1.0.0"
+ 4 | + "npm:@denotest/add@1": "npm:@denotest/add@1.0.0",
+ 5 | + "npm:@denotest/subtract@1": "npm:@denotest/subtract@1.0.0"
+ 9 | - }
+10 | + },
+11 | + "@denotest/subtract@1.0.0": {
+12 | + "integrity": "[WILDCARD]"
+13 | + }
const { subtract } = await import(scheme + "@denotest/subtract@1");
^
at [WILDCARD]
diff --git a/tests/specs/lockfile/frozen_lockfile/frozen_new_dep_jsr_cache.out b/tests/specs/lockfile/frozen_lockfile/frozen_new_dep_jsr_cache.out
index bb523deff..9e77bce85 100644
--- a/tests/specs/lockfile/frozen_lockfile/frozen_new_dep_jsr_cache.out
+++ b/tests/specs/lockfile/frozen_lockfile/frozen_new_dep_jsr_cache.out
@@ -1,12 +1,12 @@
error: The lockfile is out of date. Run `deno cache --frozen=false` or rerun with `--frozen=false` to update it.
changes:
- 5 | - "jsr:@denotest/add@1": "jsr:@denotest/add@1.0.0"
- 6 | - },
- 7 | - "jsr": {
- 5 | + "jsr:@denotest/add@0.2.0": "jsr:@denotest/add@0.2.0",
- 6 | + "jsr:@denotest/add@1": "jsr:@denotest/add@1.0.0"
- 7 | + },
- 8 | + "jsr": {
- 9 | + "@denotest/add@0.2.0": {
-10 | + "integrity": "[WILDCARD]"
-11 | + },
+ 4 | - "jsr:@denotest/add@1": "jsr:@denotest/add@1.0.0"
+ 5 | - },
+ 6 | - "jsr": {
+ 4 | + "jsr:@denotest/add@0.2.0": "jsr:@denotest/add@0.2.0",
+ 5 | + "jsr:@denotest/add@1": "jsr:@denotest/add@1.0.0"
+ 6 | + },
+ 7 | + "jsr": {
+ 8 | + "@denotest/add@0.2.0": {
+ 9 | + "integrity": "[WILDCARD]"
+10 | + },
diff --git a/tests/specs/lockfile/frozen_lockfile/frozen_new_dep_jsr_run.out b/tests/specs/lockfile/frozen_lockfile/frozen_new_dep_jsr_run.out
index 3a0d51678..0222ca355 100644
--- a/tests/specs/lockfile/frozen_lockfile/frozen_new_dep_jsr_run.out
+++ b/tests/specs/lockfile/frozen_lockfile/frozen_new_dep_jsr_run.out
@@ -2,13 +2,13 @@ Download http://127.0.0.1:4250/@denotest/add/0.2.0_meta.json
Download http://127.0.0.1:4250/@denotest/add/0.2.0/mod.ts
error: The lockfile is out of date. Run `deno cache --frozen=false` or rerun with `--frozen=false` to update it.
changes:
- 5 | - "jsr:@denotest/add@1": "jsr:@denotest/add@1.0.0"
- 6 | - },
- 7 | - "jsr": {
- 5 | + "jsr:@denotest/add@0.2.0": "jsr:@denotest/add@0.2.0",
- 6 | + "jsr:@denotest/add@1": "jsr:@denotest/add@1.0.0"
- 7 | + },
- 8 | + "jsr": {
- 9 | + "@denotest/add@0.2.0": {
-10 | + "integrity": "[WILDCARD]"
-11 | + },
+ 4 | - "jsr:@denotest/add@1": "jsr:@denotest/add@1.0.0"
+ 5 | - },
+ 6 | - "jsr": {
+ 4 | + "jsr:@denotest/add@0.2.0": "jsr:@denotest/add@0.2.0",
+ 5 | + "jsr:@denotest/add@1": "jsr:@denotest/add@1.0.0"
+ 6 | + },
+ 7 | + "jsr": {
+ 8 | + "@denotest/add@0.2.0": {
+ 9 | + "integrity": "[WILDCARD]"
+10 | + },
diff --git a/tests/specs/lockfile/frozen_lockfile/frozen_new_dep_run.out b/tests/specs/lockfile/frozen_lockfile/frozen_new_dep_run.out
index 6dad6f6f4..d8ab302b7 100644
--- a/tests/specs/lockfile/frozen_lockfile/frozen_new_dep_run.out
+++ b/tests/specs/lockfile/frozen_lockfile/frozen_new_dep_run.out
@@ -1,12 +1,11 @@
Download http://localhost:4260/@denotest/subtract
error: The lockfile is out of date. Run `deno cache --frozen=false` or rerun with `--frozen=false` to update it.
changes:
- 5 | - "npm:@denotest/add@1": "npm:@denotest/add@1.0.0"
- 5 | + "npm:@denotest/add@1": "npm:@denotest/add@1.0.0",
- 6 | + "npm:@denotest/subtract@1": "npm:@denotest/subtract@1.0.0"
-11 | - }
-12 | + },
-13 | + "@denotest/subtract@1.0.0": {
-14 | + "integrity": "[WILDCARD]",
-15 | + "dependencies": {}
-16 | + }
+ 4 | - "npm:@denotest/add@1": "npm:@denotest/add@1.0.0"
+ 4 | + "npm:@denotest/add@1": "npm:@denotest/add@1.0.0",
+ 5 | + "npm:@denotest/subtract@1": "npm:@denotest/subtract@1.0.0"
+ 9 | - }
+10 | + },
+11 | + "@denotest/subtract@1.0.0": {
+12 | + "integrity": "[WILDCARD]"
+13 | + }
diff --git a/tests/specs/lockfile/frozen_lockfile/no_lockfile_run.out b/tests/specs/lockfile/frozen_lockfile/no_lockfile_run.out
index 2ae84b110..e482c469f 100644
--- a/tests/specs/lockfile/frozen_lockfile/no_lockfile_run.out
+++ b/tests/specs/lockfile/frozen_lockfile/no_lockfile_run.out
@@ -3,18 +3,14 @@ error: The lockfile is out of date. Run `deno cache --frozen=false` or rerun wit
changes:
1 | -
1 | +{
- 2 | + "version": "3",
- 3 | + "packages": {
- 4 | + "specifiers": {
- 5 | + "npm:@denotest/add@1": "npm:@denotest/add@1.0.0"
- 6 | + },
- 7 | + "npm": {
- 8 | + "@denotest/add@1.0.0": {
- 9 | + "integrity": "[WILDCARD]",
-10 | + "dependencies": {}
-11 | + }
-12 | + }
-13 | + },
-14 | + "remote": {}
-15 | +}
-16 | +
+ 2 | + "version": "4",
+ 3 | + "specifiers": {
+ 4 | + "npm:@denotest/add@1": "npm:@denotest/add@1.0.0"
+ 5 | + },
+ 6 | + "npm": {
+ 7 | + "@denotest/add@1.0.0": {
+ 8 | + "integrity": "[WILDCARD]"
+ 9 | + }
+10 | + }
+11 | +}
+12 | +
diff --git a/tests/specs/lockfile/no_declaration_files/__test__.jsonc b/tests/specs/lockfile/no_declaration_files/__test__.jsonc
new file mode 100644
index 000000000..8bbb55825
--- /dev/null
+++ b/tests/specs/lockfile/no_declaration_files/__test__.jsonc
@@ -0,0 +1,13 @@
+{
+ "tempDir": true,
+ "steps": [{
+ "args": "cache --lock --lock-write main.ts",
+ "output": "main.cache.out"
+ }, {
+ "args": [
+ "eval",
+ "console.log(Deno.readTextFileSync('deno.lock').trim())"
+ ],
+ "output": "deno.lock.out"
+ }]
+}
diff --git a/tests/specs/lockfile/no_declaration_files/deno.lock.out b/tests/specs/lockfile/no_declaration_files/deno.lock.out
new file mode 100644
index 000000000..3066e9b15
--- /dev/null
+++ b/tests/specs/lockfile/no_declaration_files/deno.lock.out
@@ -0,0 +1,6 @@
+{
+ "version": "4",
+ "remote": {
+ "http://localhost:4545/lockfile/no_dts/mod.js": "3f576f37a301d298c3032eb1835240bd83f3762db26fc1d358c5d67088d6ffc8"
+ }
+}
diff --git a/tests/specs/lockfile/no_declaration_files/main.cache.out b/tests/specs/lockfile/no_declaration_files/main.cache.out
new file mode 100644
index 000000000..84e728d66
--- /dev/null
+++ b/tests/specs/lockfile/no_declaration_files/main.cache.out
@@ -0,0 +1,3 @@
+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/specs/lockfile/no_declaration_files/main.ts b/tests/specs/lockfile/no_declaration_files/main.ts
new file mode 100644
index 000000000..7596e1e1a
--- /dev/null
+++ b/tests/specs/lockfile/no_declaration_files/main.ts
@@ -0,0 +1,3 @@
+import { test } from "http://localhost:4545/lockfile/no_dts/mod.js";
+
+console.log(test());
diff --git a/tests/specs/lockfile/only_package_json/deno.lock.out b/tests/specs/lockfile/only_package_json/deno.lock.out
index b30232996..395190a66 100644
--- a/tests/specs/lockfile/only_package_json/deno.lock.out
+++ b/tests/specs/lockfile/only_package_json/deno.lock.out
@@ -1,14 +1,11 @@
{
- "version": "3",
- "packages": {
- "specifiers": {
- "npm:@denotest/esm-basic": "npm:@denotest/esm-basic@1.0.0"
- },
- "npm": {
- "@denotest/esm-basic@1.0.0": [WILDCARD]
- }
+ "version": "4",
+ "specifiers": {
+ "npm:@denotest/esm-basic": "npm:@denotest/esm-basic@1.0.0"
+ },
+ "npm": {
+ "@denotest/esm-basic@1.0.0": [WILDCARD]
},
- "remote": {},
"workspace": {
"packageJson": {
"dependencies": [
diff --git a/tests/specs/npm/adding_npm_dep_in_dynamic_import/lock.out b/tests/specs/npm/adding_npm_dep_in_dynamic_import/lock.out
index c67be75c9..c8caafc07 100644
--- a/tests/specs/npm/adding_npm_dep_in_dynamic_import/lock.out
+++ b/tests/specs/npm/adding_npm_dep_in_dynamic_import/lock.out
@@ -1,20 +1,15 @@
{
- "version": "3",
- "packages": {
- "specifiers": {
- "npm:@denotest/add": "npm:@denotest/add@1.0.0",
- "npm:@denotest/subtract": "npm:@denotest/subtract@1.0.0"
+ "version": "4",
+ "specifiers": {
+ "npm:@denotest/add": "npm:@denotest/add@1.0.0",
+ "npm:@denotest/subtract": "npm:@denotest/subtract@1.0.0"
+ },
+ "npm": {
+ "@denotest/add@1.0.0": {
+ "integrity": "[WILDLINE]"
},
- "npm": {
- "@denotest/add@1.0.0": {
- "integrity": "[WILDLINE]",
- "dependencies": {}
- },
- "@denotest/subtract@1.0.0": {
- "integrity": "[WILDLINE]",
- "dependencies": {}
- }
+ "@denotest/subtract@1.0.0": {
+ "integrity": "[WILDLINE]"
}
- },
- "remote": {}
+ }
}
diff --git a/tests/specs/remove/basic/add_lock.out b/tests/specs/remove/basic/add_lock.out
index cda0fc34a..99127b95d 100644
--- a/tests/specs/remove/basic/add_lock.out
+++ b/tests/specs/remove/basic/add_lock.out
@@ -1,20 +1,17 @@
{
- "version": "3",
- "packages": {
- "specifiers": {
- "jsr:@std/assert@^1.0.0": "jsr:@std/assert@1.0.0",
- "jsr:@std/http@^1.0.0": "jsr:@std/http@1.0.0"
+ "version": "4",
+ "specifiers": {
+ "jsr:@std/assert@^1.0.0": "jsr:@std/assert@1.0.0",
+ "jsr:@std/http@^1.0.0": "jsr:@std/http@1.0.0"
+ },
+ "jsr": {
+ "@std/assert@1.0.0": {
+ "integrity": "[WILDLINE]"
},
- "jsr": {
- "@std/assert@1.0.0": {
- "integrity": "[WILDLINE]"
- },
- "@std/http@1.0.0": {
- "integrity": "[WILDLINE]"
- }
+ "@std/http@1.0.0": {
+ "integrity": "[WILDLINE]"
}
},
- "remote": {},
"workspace": {
"dependencies": [
"jsr:@std/assert@^1.0.0",
diff --git a/tests/specs/remove/basic/remove_lock.out b/tests/specs/remove/basic/remove_lock.out
index 37f10ce95..a39b837e9 100644
--- a/tests/specs/remove/basic/remove_lock.out
+++ b/tests/specs/remove/basic/remove_lock.out
@@ -1,4 +1,3 @@
{
- "version": "3",
- "remote": {}
+ "version": "4"
}
diff --git a/tests/specs/workspaces/lockfile/expected-lock.out b/tests/specs/workspaces/lockfile/expected-lock.out
index dcc479a20..fc387c760 100644
--- a/tests/specs/workspaces/lockfile/expected-lock.out
+++ b/tests/specs/workspaces/lockfile/expected-lock.out
@@ -1,16 +1,13 @@
{
- "version": "3",
- "packages": {
- "specifiers": {
- "jsr:@denotest/add@1": "jsr:@denotest/add@1.0.0"
- },
- "jsr": {
- "@denotest/add@1.0.0": {
- "integrity": "3b2e675c1ad7fba2a45bc251992e01aff08a3c974ac09079b11e6a5b95d4bfcb"
- }
+ "version": "4",
+ "specifiers": {
+ "jsr:@denotest/add@1": "jsr:@denotest/add@1.0.0"
+ },
+ "jsr": {
+ "@denotest/add@1.0.0": {
+ "integrity": "3b2e675c1ad7fba2a45bc251992e01aff08a3c974ac09079b11e6a5b95d4bfcb"
}
},
- "remote": {},
"workspace": {
"members": {
"pkg": {