summaryrefslogtreecommitdiff
path: root/tests/specs/lockfile/no_lock
diff options
context:
space:
mode:
Diffstat (limited to 'tests/specs/lockfile/no_lock')
-rw-r--r--tests/specs/lockfile/no_lock/__test__.jsonc67
-rw-r--r--tests/specs/lockfile/no_lock/bench.nolock.out1
-rw-r--r--tests/specs/lockfile/no_lock/doc.nolock.out1
-rw-r--r--tests/specs/lockfile/no_lock/fail.out15
-rw-r--r--tests/specs/lockfile/no_lock/fail_initial.out4
-rw-r--r--tests/specs/lockfile/no_lock/info.nolock.out1
-rw-r--r--tests/specs/lockfile/no_lock/test.nolock.out1
7 files changed, 54 insertions, 36 deletions
diff --git a/tests/specs/lockfile/no_lock/__test__.jsonc b/tests/specs/lockfile/no_lock/__test__.jsonc
index 60bbd17e0..75821ac64 100644
--- a/tests/specs/lockfile/no_lock/__test__.jsonc
+++ b/tests/specs/lockfile/no_lock/__test__.jsonc
@@ -1,31 +1,40 @@
{
- "steps": [{
- "args": "info main.ts",
- "output": "fail_initial.out",
- "exitCode": 10
- }, {
- "args": "info --no-lock main.ts",
- "output": "info.nolock.out"
- }, {
- "args": "bench",
- "output": "fail.out",
- "exitCode": 10
- }, {
- "args": "bench --no-lock",
- "output": "bench.nolock.out"
- }, {
- "args": "doc main.ts",
- "exitCode": 10,
- "output": "fail.out"
- }, {
- "args": "doc --no-lock main.ts",
- "output": "doc.nolock.out"
- }, {
- "args": "test",
- "exitCode": 10,
- "output": "fail.out"
- }, {
- "args": "test --no-lock",
- "output": "test.nolock.out"
- }]
+ "tests": {
+ "info": {
+ "args": "info main.ts",
+ "output": "fail.out",
+ "exitCode": 10
+ },
+ "info_no_lock": {
+ "args": "info --no-lock main.ts",
+ "output": "info.nolock.out"
+ },
+ "bench": {
+ "args": "bench",
+ "output": "fail.out",
+ "exitCode": 10
+ },
+ "bench_no_lock": {
+ "args": "bench --no-lock",
+ "output": "bench.nolock.out"
+ },
+ "doc": {
+ "args": "doc main.ts",
+ "exitCode": 10,
+ "output": "fail.out"
+ },
+ "doc_no_lock": {
+ "args": "doc --no-lock main.ts",
+ "output": "doc.nolock.out"
+ },
+ "test": {
+ "args": "test",
+ "exitCode": 10,
+ "output": "fail.out"
+ },
+ "test_no_lock": {
+ "args": "test --no-lock",
+ "output": "test.nolock.out"
+ }
+ }
}
diff --git a/tests/specs/lockfile/no_lock/bench.nolock.out b/tests/specs/lockfile/no_lock/bench.nolock.out
index 351efc970..83e4de242 100644
--- a/tests/specs/lockfile/no_lock/bench.nolock.out
+++ b/tests/specs/lockfile/no_lock/bench.nolock.out
@@ -1,3 +1,4 @@
+Download http://localhost:4545/lockfile/basic/mod.ts
Check file:///[WILDCARD]/main.bench.ts
cpu: [WILDCARD]
runtime: [WILDCARD]
diff --git a/tests/specs/lockfile/no_lock/doc.nolock.out b/tests/specs/lockfile/no_lock/doc.nolock.out
index e69de29bb..e2d66c027 100644
--- a/tests/specs/lockfile/no_lock/doc.nolock.out
+++ b/tests/specs/lockfile/no_lock/doc.nolock.out
@@ -0,0 +1 @@
+Download http://localhost:4545/lockfile/basic/mod.ts
diff --git a/tests/specs/lockfile/no_lock/fail.out b/tests/specs/lockfile/no_lock/fail.out
index 4c2b04423..0d67cd478 100644
--- a/tests/specs/lockfile/no_lock/fail.out
+++ b/tests/specs/lockfile/no_lock/fail.out
@@ -1,3 +1,12 @@
-error: The source code is invalid, as it does not match the expected hash in the lock file.
- Specifier: [WILDCARD]mod.ts
- Lock file: [WILDCARD]deno.lock
+Download http://localhost:4545/lockfile/basic/mod.ts
+error: Integrity check failed for remote specifier. The source code is invalid, as it does not match the expected hash in the lock file.
+
+ Specifier: http://localhost:4545/lockfile/basic/mod.ts
+ Actual: [WILDLINE]
+ Expected: invalid
+
+This could be caused by:
+ * the lock file may be corrupt
+ * the source itself may be corrupt
+
+Use the --lock-write flag to regenerate the lockfile or --reload to reload the source code from the server.
diff --git a/tests/specs/lockfile/no_lock/fail_initial.out b/tests/specs/lockfile/no_lock/fail_initial.out
deleted file mode 100644
index 6a808c0a5..000000000
--- a/tests/specs/lockfile/no_lock/fail_initial.out
+++ /dev/null
@@ -1,4 +0,0 @@
-Download http://localhost:4545/lockfile/basic/mod.ts
-error: The source code is invalid, as it does not match the expected hash in the lock file.
- Specifier: [WILDCARD]mod.ts
- Lock file: [WILDCARD]deno.lock
diff --git a/tests/specs/lockfile/no_lock/info.nolock.out b/tests/specs/lockfile/no_lock/info.nolock.out
index b03661193..313377780 100644
--- a/tests/specs/lockfile/no_lock/info.nolock.out
+++ b/tests/specs/lockfile/no_lock/info.nolock.out
@@ -1,3 +1,4 @@
+Download http://localhost:4545/lockfile/basic/mod.ts
local: [WILDLINE]main.ts
type: TypeScript
dependencies: 1 unique
diff --git a/tests/specs/lockfile/no_lock/test.nolock.out b/tests/specs/lockfile/no_lock/test.nolock.out
index b5039c2d6..1332dfa8f 100644
--- a/tests/specs/lockfile/no_lock/test.nolock.out
+++ b/tests/specs/lockfile/no_lock/test.nolock.out
@@ -1,3 +1,4 @@
+Download http://localhost:4545/lockfile/basic/mod.ts
Check file:///[WILDCARD]/main.test.ts
running 1 test from [WILDCARD]/main.test.ts
[WILDCARD]