1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-22 23:34:47 -05:00
denoland-deno/tests/specs/npm/byonm/__test__.jsonc
Nathan Whitaker 795ed23b35
fix(future): Emit deno install warning less often, suggest deno install in error message (#24706)
Two small changes:

- In our BYONM errors, suggest running `deno install` instead of `npm
install` if `DENO_FUTURE` is set
- Only emit warning about `deno install` changes if you do `deno install
<foo>` with deno_future unset
2024-07-24 23:37:13 +00:00

52 lines
1.1 KiB
Text

{
"tempDir": true,
"tests": {
"future_not_installed": {
"envs": {
"DENO_FUTURE": "1"
},
"steps": [{
"args": "run -A not_installed.ts",
"output": "future_not_installed.out",
"exitCode": 1
}]
},
"future_invalid_sub_path": {
"envs": {
"DENO_FUTURE": "1"
},
"steps": [{
"args": "install",
"output": "[WILDCARD]"
}, {
"args": "run -A invalid_sub_path.ts",
"output": "invalid_sub_path.out",
"exitCode": 1
}]
},
"not_installed": {
"envs": {
"DENO_UNSTABLE_BYONM": "1"
},
"steps": [{
"args": "run -A not_installed.ts",
"output": "not_installed.out",
"exitCode": 1
}]
},
"invalid_sub_path": {
"envs": {
"DENO_UNSTABLE_BYONM": "1"
},
"steps": [{
"args": "install",
"commandName": "npm",
"output": "[WILDCARD]"
}, {
"args": "run -A invalid_sub_path.ts",
"output": "invalid_sub_path.out",
"exitCode": 1
}]
}
}
}