mirror of
https://github.com/denoland/deno.git
synced 2024-11-21 15:04:11 -05:00
tests: enable specs::run::package_json::invalid_value (#25826)
Towards https://github.com/denoland/deno/issues/25241 Co-authored-by: David Sherret <dsherret@gmail.com>
This commit is contained in:
parent
e41df20ad9
commit
779a98cd39
6 changed files with 48 additions and 15 deletions
|
@ -1,23 +1,54 @@
|
|||
{
|
||||
"tempDir": true,
|
||||
// TODO(2.0): update the tests, should probably run install first
|
||||
"ignore": true,
|
||||
"tests": {
|
||||
// should run fine when not referencing a failing dep entry
|
||||
"run_ok": {
|
||||
"args": "run ok.ts",
|
||||
"run_ok_auto": {
|
||||
"args": "run --quiet --node-modules-dir=auto ok.ts",
|
||||
"output": "ok.ts.out"
|
||||
},
|
||||
"run_ok_byonm": {
|
||||
"steps": [
|
||||
{
|
||||
"args": "install",
|
||||
"output": "install.out"
|
||||
},
|
||||
{
|
||||
"args": "run ok.ts",
|
||||
"output": "ok.ts.out"
|
||||
}
|
||||
]
|
||||
},
|
||||
// should fail when referencing a failing dep entry
|
||||
"run_error": {
|
||||
"args": "run error.ts",
|
||||
"run_error_auto": {
|
||||
"args": "run --node-modules-dir=auto error.ts",
|
||||
"exitCode": 1,
|
||||
"output": "error.ts.out"
|
||||
"output": "error_auto.out"
|
||||
},
|
||||
"run_error_byonm": {
|
||||
"steps": [
|
||||
{
|
||||
"args": "install",
|
||||
"output": "install.out"
|
||||
},
|
||||
{
|
||||
"args": "run error.ts",
|
||||
"exitCode": 1,
|
||||
"output": "error.out"
|
||||
}
|
||||
]
|
||||
},
|
||||
// should output a warning about the failing dep entry
|
||||
"task_test": {
|
||||
"args": "task test",
|
||||
"output": "task.out"
|
||||
"steps": [
|
||||
{
|
||||
"args": "install",
|
||||
"output": "install.out"
|
||||
},
|
||||
{
|
||||
"args": "task test",
|
||||
"output": "task.out"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
2
tests/specs/run/package_json/invalid_value/error.out
Normal file
2
tests/specs/run/package_json/invalid_value/error.out
Normal file
|
@ -0,0 +1,2 @@
|
|||
error: Could not resolve "@denotest/cjs-default-export", but found it in a package.json. Deno expects the node_modules/ directory to be up to date. Did you forget to run `deno install`?
|
||||
at file:///[WILDCARD]/error.ts:2:23
|
|
@ -1,3 +1,6 @@
|
|||
Download http://localhost:4260/@denotest/esm-basic
|
||||
Download http://localhost:4260/@denotest/esm-basic/1.0.0.tgz
|
||||
Initialize @denotest/esm-basic@1.0.0
|
||||
error: Invalid version requirement
|
||||
0: Unexpected character.
|
||||
invalid stuff that won't parse
|
3
tests/specs/run/package_json/invalid_value/install.out
Normal file
3
tests/specs/run/package_json/invalid_value/install.out
Normal file
|
@ -0,0 +1,3 @@
|
|||
Download http://localhost:4260/@denotest/esm-basic
|
||||
Download http://localhost:4260/@denotest/esm-basic/1.0.0.tgz
|
||||
Initialize @denotest/esm-basic@1.0.0
|
|
@ -1,4 +1 @@
|
|||
Download http://localhost:4260/@denotest/esm-basic
|
||||
Download http://localhost:4260/@denotest/esm-basic/1.0.0.tgz
|
||||
Initialize @denotest/esm-basic@1.0.0
|
||||
2
|
||||
|
|
|
@ -1,5 +1,2 @@
|
|||
Download http://localhost:4260/@denotest/esm-basic
|
||||
Download http://localhost:4260/@denotest/esm-basic/1.0.0.tgz
|
||||
Initialize @denotest/esm-basic@1.0.0
|
||||
Task test echo 1
|
||||
1
|
||||
|
|
Loading…
Reference in a new issue