mirror of
https://github.com/denoland/deno.git
synced 2024-12-12 10:37:52 -05:00
9eee2a0e9e
Similar with https://github.com/denoland/deno/pull/25848, we need to make `format_sql` to return `None` so we do not flag well formatted sql files as being wrong. Signed-off-by: m4rc3l05 <15786310+M4RC3L05@users.noreply.github.com>
29 lines
841 B
Text
29 lines
841 B
Text
{
|
|
"tempDir": true,
|
|
"tests": {
|
|
"nothing": {
|
|
"args": "fmt",
|
|
"output": "Checked 7 files\n"
|
|
},
|
|
"flag": {
|
|
"args": "fmt --unstable-sql",
|
|
"output": "[UNORDERED_START]\n[WILDLINE]badly_formatted.sql\n[WILDLINE]wrong_file_ignore.sql\n[UNORDERED_END]\nChecked 7 files\n"
|
|
},
|
|
"config_file": {
|
|
"steps": [{
|
|
"args": [
|
|
"eval",
|
|
"Deno.writeTextFile('deno.json', '{\\n \"unstable\": [\"fmt-sql\"]\\n}\\n')"
|
|
],
|
|
"output": "[WILDCARD]"
|
|
}, {
|
|
"args": "fmt",
|
|
"output": "[UNORDERED_START]\n[WILDLINE]badly_formatted.sql\n[WILDLINE]wrong_file_ignore.sql\n[UNORDERED_END]\nChecked 8 files\n"
|
|
}]
|
|
},
|
|
"well_formatted_check": {
|
|
"args": "fmt --unstable-sql --check well_formatted.sql",
|
|
"output": "Checked 1 file\n"
|
|
}
|
|
}
|
|
}
|