summaryrefslogtreecommitdiff
path: root/tests/specs/fmt/sql/__test__.jsonc
blob: a335e79c24d971d692be442c07b208c52e87af23 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{
  "tempDir": true,
  "tests": {
    "nothing": {
      "args": "fmt",
      "output": "Checked 7 files\n"
    },
    "flag": {
      "args": "fmt --unstable-sql",
      "output": "[UNORDERED_START]\n[WILDLINE]badly_formatted.sql\n[WILDLINE]well_formatted.sql\n[WILDLINE]wrong_file_ignore.sql\n[UNORDERED_END]\nChecked 7 files\n"
    },
    "config_file": {
      "steps": [{
        "args": [
          "eval",
          "Deno.writeTextFile('deno.json', '{\\n  \"unstable\": [\"fmt-sql\"]\\n}\\n')"
        ],
        "output": "[WILDCARD]"
      }, {
        "args": "fmt",
        "output": "[UNORDERED_START]\n[WILDLINE]badly_formatted.sql\n[WILDLINE]well_formatted.sql\n[WILDLINE]wrong_file_ignore.sql\n[UNORDERED_END]\nChecked 8 files\n"
      }]
    }
  }
}