mirror of
https://github.com/denoland/deno.git
synced 2024-11-24 15:19:26 -05:00
c55e936be0
This commit adds support for .sql files in "deno fmt" subcommand. Closes: https://github.com/denoland/deno/issues/25024 --------- Signed-off-by: m4rc3l05 <15786310+M4RC3L05@users.noreply.github.com> Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
25 lines
766 B
Text
25 lines
766 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]well_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]well_formatted.sql\n[WILDLINE]wrong_file_ignore.sql\n[UNORDERED_END]\nChecked 8 files\n"
|
|
}]
|
|
}
|
|
}
|
|
}
|