Skip to content

Commit

Permalink
tests: enable auto_discovered tests of run/no_deno_json (#25821)
Browse files Browse the repository at this point in the history
Towards #25241
  • Loading branch information
satyarohith authored Sep 23, 2024
1 parent 08d3f17 commit b155084
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 12 deletions.
36 changes: 25 additions & 11 deletions tests/specs/run/no_deno_json/__test__.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -29,19 +29,33 @@
"cwd": "code"
},
"auto_discovered": {
// TODO(2.0): most likely needs to change output to not expect auto-install
"ignore": true,
// auto-discovered node_modules relative package.json
"args": "run -A main.js",
"output": "code/sub_dir/main.out",
"cwd": "code/sub_dir"
"steps": [
{
"args": "install",
"output": "code/install.out",
"cwd": "code"
},
{
// auto-discovered node_modules relative package.json
"args": "run -A main.js",
"output": "code/sub_dir/main.out",
"cwd": "code/sub_dir"
}
]
},
"auto_discovered_arg": {
// TODO(2.0): most likely needs to change output to not expect auto-install
"ignore": true,
// auto-discovered for local script arg
"args": "run -L debug -A code/main.ts", // notice this is not in the sub dir
"output": "main.out"
"steps": [
{
"args": "install",
"output": "code/install.out",
"cwd": "code"
},
{
// auto-discovered for local script arg
"args": "run -L debug -A code/main.ts", // notice this is not in the sub dir
"output": "main.out"
}
]
}
}
}
26 changes: 26 additions & 0 deletions tests/specs/run/no_deno_json/code/install.out
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
[UNORDERED_START]
Download http://localhost:4260/@denotest/check-error
Download http://localhost:4260/@denotest/cjs-default-export
Download http://localhost:4260/chalk
Download http://localhost:4260/ansi-styles
Download http://localhost:4260/supports-color
Download http://localhost:4260/color-convert
Download http://localhost:4260/has-flag
Download http://localhost:4260/color-name
Download http://localhost:4260/@denotest/check-error/1.0.0.tgz
Download http://localhost:4260/@denotest/cjs-default-export/1.0.0.tgz
Download http://localhost:4260/chalk/chalk-4.1.2.tgz
Download http://localhost:4260/ansi-styles/ansi-styles-4.3.0.tgz
Download http://localhost:4260/supports-color/supports-color-7.2.0.tgz
Download http://localhost:4260/color-convert/color-convert-2.0.1.tgz
Download http://localhost:4260/has-flag/has-flag-4.0.0.tgz
Download http://localhost:4260/color-name/color-name-1.1.4.tgz
Initialize @denotest/[email protected]
Initialize [email protected]
Initialize [email protected]
Initialize [email protected]
Initialize [email protected]
Initialize [email protected]
Initialize [email protected]
Initialize @denotest/[email protected]
[UNORDERED_END]
1 change: 0 additions & 1 deletion tests/specs/run/no_deno_json/code/sub_dir/main.out
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
Download http://[WILDCARD]
[WILDCARD]sub_dir
{
[WILDCARD]
Expand Down

0 comments on commit b155084

Please sign in to comment.