mirror of
https://github.com/denoland/deno.git
synced 2024-11-25 15:29:32 -05:00
bb45446fa7
When using the `ext` flag, it will still attempt formatting them with the provided extension
23 lines
530 B
Text
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"
|
|
}
|
|
}
|
|
}
|