mirror of
https://github.com/denoland/deno.git
synced 2025-01-23 15:39:49 -05:00
340bcb1ba5
This commit changes "deno outdated" subcommand to error out if run in a directory that has no config file (including parent directories). This matches "pnpm" behavior. Also added tests for filtering that yields no results, to ensure that it exists cleanly, that also matches "pnpm" behavior. Closes https://github.com/denoland/deno/issues/27287 --------- Signed-off-by: Bartek Iwańczuk <biwanczuk@gmail.com> Co-authored-by: David Sherret <dsherret@users.noreply.github.com>
110 lines
2.5 KiB
JSON
110 lines
2.5 KiB
JSON
{
|
|
"tempDir": true,
|
|
"tests": {
|
|
"sanity_lockfile_up_to_date": {
|
|
"steps": [
|
|
{
|
|
"args": "install",
|
|
"output": "[WILDCARD]"
|
|
},
|
|
{
|
|
"args": [
|
|
"eval",
|
|
"const now = Deno.readTextFileSync('./deno.lock'); console.log(now.trim());"
|
|
],
|
|
"output": "deno.lock.orig.out"
|
|
}
|
|
]
|
|
},
|
|
"print_outdated": {
|
|
"steps": [
|
|
{
|
|
"args": "install",
|
|
"output": "[WILDCARD]"
|
|
},
|
|
{
|
|
"args": "outdated",
|
|
"output": "outdated.out"
|
|
},
|
|
{
|
|
// Filtering that matches nothing, should exit cleanly
|
|
"args": "outdated foobar",
|
|
"output": ""
|
|
}
|
|
]
|
|
},
|
|
"print_outdated_compatible": {
|
|
"steps": [
|
|
{
|
|
"args": "install",
|
|
"output": "[WILDCARD]"
|
|
},
|
|
{
|
|
"args": "outdated --compatible",
|
|
"output": "outdated_compatible.out"
|
|
},
|
|
{
|
|
// Filtering that matches nothing, should exit cleanly
|
|
"args": "outdated --compatible foobar",
|
|
"output": ""
|
|
}
|
|
]
|
|
},
|
|
"update_compatible": {
|
|
"steps": [
|
|
{
|
|
"args": "install",
|
|
"output": "[WILDCARD]"
|
|
},
|
|
{
|
|
"args": "outdated --update",
|
|
"output": "./update_compatible/update.out"
|
|
},
|
|
{
|
|
"args": "-A ./print_file.ts ./package.json",
|
|
"output": "./update_compatible/package.json.out"
|
|
},
|
|
{
|
|
"args": "-A ./print_file.ts ./deno.lock",
|
|
"output": "./update_compatible/deno.lock.out"
|
|
}
|
|
]
|
|
},
|
|
"update_latest": {
|
|
"steps": [
|
|
{
|
|
"args": "install",
|
|
"output": "[WILDCARD]"
|
|
},
|
|
{
|
|
"args": "outdated --update --latest",
|
|
"output": "update_latest/update.out"
|
|
},
|
|
{
|
|
"args": "-A ./print_file.ts ./package.json",
|
|
"output": "update_latest/package.json.out"
|
|
},
|
|
{
|
|
"args": "-A ./print_file.ts ./deno.lock",
|
|
"output": "update_latest/deno.lock.out"
|
|
}
|
|
]
|
|
},
|
|
"update_filtered": {
|
|
"steps": [
|
|
{
|
|
"args": "install",
|
|
"output": "[WILDCARD]"
|
|
},
|
|
{
|
|
"args": "outdated --update --latest @denotest/has-patch* aliased@0.7.0",
|
|
"output": "filtered/update.out"
|
|
},
|
|
{
|
|
"args": "-A print_file.ts ./package.json",
|
|
"output": "filtered/package.json.out"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|