1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-25 15:29:32 -05:00

tests: enable auto_discovered tests of run/no_deno_json (#25821)

Towards https://github.com/denoland/deno/issues/25241
This commit is contained in:
Satya Rohith 2024-09-23 19:07:35 +05:30 committed by GitHub
parent 08d3f17110
commit b1550842d9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 51 additions and 12 deletions

View file

@ -29,19 +29,33 @@
"cwd": "code" "cwd": "code"
}, },
"auto_discovered": { "auto_discovered": {
// TODO(2.0): most likely needs to change output to not expect auto-install "steps": [
"ignore": true, {
"args": "install",
"output": "code/install.out",
"cwd": "code"
},
{
// auto-discovered node_modules relative package.json // auto-discovered node_modules relative package.json
"args": "run -A main.js", "args": "run -A main.js",
"output": "code/sub_dir/main.out", "output": "code/sub_dir/main.out",
"cwd": "code/sub_dir" "cwd": "code/sub_dir"
}
]
}, },
"auto_discovered_arg": { "auto_discovered_arg": {
// TODO(2.0): most likely needs to change output to not expect auto-install "steps": [
"ignore": true, {
"args": "install",
"output": "code/install.out",
"cwd": "code"
},
{
// auto-discovered for local script arg // auto-discovered for local script arg
"args": "run -L debug -A code/main.ts", // notice this is not in the sub dir "args": "run -L debug -A code/main.ts", // notice this is not in the sub dir
"output": "main.out" "output": "main.out"
} }
]
}
} }
} }

View file

@ -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/cjs-default-export@1.0.0
Initialize color-name@1.1.4
Initialize ansi-styles@4.3.0
Initialize has-flag@4.0.0
Initialize supports-color@7.2.0
Initialize color-convert@2.0.1
Initialize chalk@4.1.2
Initialize @denotest/check-error@1.0.0
[UNORDERED_END]

View file

@ -1,4 +1,3 @@
Download http://[WILDCARD]
[WILDCARD]sub_dir [WILDCARD]sub_dir
{ {
[WILDCARD] [WILDCARD]