1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-22 15:06:54 -05:00
denoland-deno/tests/specs/fmt/default_ts/__test__.jsonc
Leo Kettmeir bb45446fa7
fix: don't include extensionless files in file collection for lint & fmt by default (#25721)
When using the `ext` flag, it will still attempt formatting them with
the provided extension
2024-09-19 11:25:48 +02:00

23 lines
530 B
Text

{
"tempDir": true,
"tests": {
"stdin": {
"args": "fmt -",
"input": "const x: string = \"foo\";",
"output": "const x: string = \"foo\";\n"
},
"ext_flag": {
"args": "fmt --ext=ts as_ts.js",
"output": "Checked 1 file\n"
},
"extensionless": {
"args": "fmt extensionless",
"output": "error: No target files found.\n",
"exitCode": 1
},
"extensionless_with_flag": {
"args": "fmt --ext=ts extensionless",
"output": "Checked 1 file\n"
}
}
}