1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-13 02:52:54 -05:00
denoland-deno/tests/specs/fmt/yaml/__test__.jsonc
Bartek Iwańczuk 9a39a98b57
fix(fmt): ignore file directive for YAML files (#26717)
Closes https://github.com/denoland/deno/issues/26712

Support `# deno-fmt-ignore-file` directive for YAML files.

Also added tests for single line ignores.
2024-11-04 17:57:29 +00:00

37 lines
928 B
Text

{
"tempDir": true,
"tests": {
"badly_formatted": {
"args": "fmt badly_formatted.yml",
"output": "[WILDLINE]badly_formatted.yml\nChecked 1 file\n"
},
"well_formatted": {
"args": "fmt --check well_formatted.yml",
"output": "Checked 1 file\n"
},
"ignore_line": {
"args": "fmt --check ignore_line.yml",
"output": "Checked 1 file\n"
},
"ignore_file": {
"args": "fmt ignore_file.yaml",
"output": "Checked 1 file\n"
},
"ignore_file2": {
"args": "fmt ignore_file2.yaml",
"output": "Checked 1 file\n"
},
"ignore_file3": {
"args": "fmt ignore_file3.yaml",
"output": "Checked 1 file\n"
},
"ignore_file4": {
"args": "fmt ignore_file4.yaml",
"output": "Checked 1 file\n"
},
"wrong_file_ignore": {
"args": "fmt wrong_file_ignore.yaml",
"output": "wrong_file_ignore.out"
}
}
}