summaryrefslogtreecommitdiff
path: root/tests/specs/lint/default_ts/__test__.jsonc
blob: d7c618a5a721ef7fb942f3d550eaa1e2cd6a8b97 (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": "lint -",
      "input": "const _x: string = \"foo\";",
      "output": "Checked 1 file\n"
    },
    "ext_flag": {
      "args": "lint --ext=ts as_ts.js",
      "output": "Checked 1 file\n"
    },
    "extensionless": {
      "args": "lint extensionless",
      "output": "error: No target files found.\n",
      "exitCode": 1
    },
    "extensionless_with_flag": {
      "args": "lint --ext=ts extensionless",
      "output": "Checked 1 file\n"
    }
  }
}