-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests: enable specs::run::package_json::invalid_value (#25826)
Towards #25241 Co-authored-by: David Sherret <[email protected]>
- Loading branch information
1 parent
e41df20
commit 779a98c
Showing
6 changed files
with
48 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" | ||
} | ||
] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
3 changes: 3 additions & 0 deletions
3
...n/package_json/invalid_value/error.ts.out → ...package_json/invalid_value/error_auto.out
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
Download http://localhost:4260/@denotest/esm-basic | ||
Download http://localhost:4260/@denotest/esm-basic/1.0.0.tgz | ||
Initialize @denotest/[email protected] | ||
error: Invalid version requirement | ||
0: Unexpected character. | ||
invalid stuff that won't parse | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Download http://localhost:4260/@denotest/esm-basic | ||
Download http://localhost:4260/@denotest/esm-basic/1.0.0.tgz | ||
Initialize @denotest/[email protected] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1 @@ | ||
Download http://localhost:4260/@denotest/esm-basic | ||
Download http://localhost:4260/@denotest/esm-basic/1.0.0.tgz | ||
Initialize @denotest/[email protected] | ||
2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,2 @@ | ||
Download http://localhost:4260/@denotest/esm-basic | ||
Download http://localhost:4260/@denotest/esm-basic/1.0.0.tgz | ||
Initialize @denotest/[email protected] | ||
Task test echo 1 | ||
1 |