diff options
Diffstat (limited to 'tests/specs/jsr/version_not_found')
-rw-r--r-- | tests/specs/jsr/version_not_found/__test__.jsonc | 6 | ||||
-rw-r--r-- | tests/specs/jsr/version_not_found/main.out | 5 | ||||
-rw-r--r-- | tests/specs/jsr/version_not_found/main.ts | 2 |
3 files changed, 13 insertions, 0 deletions
diff --git a/tests/specs/jsr/version_not_found/__test__.jsonc b/tests/specs/jsr/version_not_found/__test__.jsonc new file mode 100644 index 000000000..36335985f --- /dev/null +++ b/tests/specs/jsr/version_not_found/__test__.jsonc @@ -0,0 +1,6 @@ +{ + "base": "jsr", + "args": "run -A main.ts", + "output": "main.out", + "exitCode": 1 +} diff --git a/tests/specs/jsr/version_not_found/main.out b/tests/specs/jsr/version_not_found/main.out new file mode 100644 index 000000000..6a32b5d81 --- /dev/null +++ b/tests/specs/jsr/version_not_found/main.out @@ -0,0 +1,5 @@ +Download http://127.0.0.1:4250/@denotest/deps/meta.json +Download http://127.0.0.1:4250/@denotest/deps/meta.json +error: Could not find constraint in the list of versions: @denotest/deps@0.1.4 + Specifier: jsr:@denotest/deps@0.1.4/mod.ts + at file:///[WILDCARD]/version_not_found/main.ts:1:19 diff --git a/tests/specs/jsr/version_not_found/main.ts b/tests/specs/jsr/version_not_found/main.ts new file mode 100644 index 000000000..a7673b744 --- /dev/null +++ b/tests/specs/jsr/version_not_found/main.ts @@ -0,0 +1,2 @@ +import value from "jsr:@denotest/deps@0.1.4/mod.ts"; +console.log(value); |