summaryrefslogtreecommitdiff
path: root/tests/specs/fmt/default_ts/__test__.jsonc
blob: 39772f5f80adb5f6ef6210f862bafe789f8da602 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{
  "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"
    }
  }
}