2024-11-20 18:22:15 -05:00
|
|
|
{
|
|
|
|
"tempDir": true,
|
|
|
|
"tests": {
|
|
|
|
// just to make sure install doesn't change the lockfile
|
|
|
|
"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"
|
2024-12-10 13:22:42 -05:00
|
|
|
},
|
2024-12-10 18:25:29 -05:00
|
|
|
{
|
|
|
|
// Filtering that matches nothing, should exit cleanly
|
|
|
|
"args": "outdated foobar",
|
|
|
|
"output": ""
|
|
|
|
},
|
2024-12-10 13:22:42 -05:00
|
|
|
{
|
|
|
|
// Respect `--quiet flag and don't print hint how to update
|
|
|
|
"args": "outdated --quiet",
|
|
|
|
"output": "outdated_quiet.out"
|
2024-11-20 18:22:15 -05:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"print_outdated_compatible": {
|
|
|
|
"steps": [
|
|
|
|
{
|
|
|
|
"args": "install",
|
|
|
|
"output": "[WILDCARD]"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"args": "outdated --compatible",
|
|
|
|
"output": "outdated_compatible.out"
|
2024-12-10 18:25:29 -05:00
|
|
|
},
|
|
|
|
{
|
|
|
|
// Filtering that matches nothing, should exit cleanly
|
|
|
|
"args": "outdated --compatible foobar",
|
|
|
|
"output": ""
|
2024-11-20 18:22:15 -05:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"update_compatible": {
|
|
|
|
"steps": [
|
|
|
|
{
|
|
|
|
"args": "install",
|
|
|
|
"output": "[WILDCARD]"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"args": "outdated --update",
|
|
|
|
"output": "./update_compatible/update.out"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"args": "-A print_file.ts ./deno.json",
|
|
|
|
"output": "./update_compatible/deno.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 ./deno.json",
|
|
|
|
"output": "./update_latest/deno.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/add @denotest/b* !@denotest/breaking* @denotest/with-subpath@0.5.0",
|
|
|
|
"output": "filtered/update.out"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"args": "-A print_file.ts ./deno.json",
|
|
|
|
"output": "filtered/deno.json.out"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|