summaryrefslogtreecommitdiff
path: root/tests/specs/task/bin_package/__test__.jsonc
blob: d5da4b4e1ef352d9493ea68e672ff78e81272919 (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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
{
  "tests": {
    "sets_up_bin_dir": {
      "tempDir": true,
      "steps": [
        // {"commandName": "npm", "args": "install", "output": "\nadded 1 package in [WILDCARD]\n"},
        {
          "args": "task sayhi",
          "output": "task.out"
        },
        {
          "if": "unix",
          "commandName": "./node_modules/.bin/cli-esm",
          "args": "hi hello",
          "output": "hi\nhello\n"
        },
        {
          "if": "windows",
          "commandName": "./node_modules/.bin/cli-esm.cmd",
          "args": "hi hello",
          "output": "hi\nhello\n"
        },
        {
          "commandName": "npm",
          "args": "run sayhi",
          "output": "npm-run.out"
        }
      ]
    },
    "clobbers_if_already_setup": {
      "tempDir": true,
      "steps": [{
        "commandName": "npm",
        "args": "install",
        "output": "\nadded 1 package in [WILDCARD]\n"
      }, {
        "if": "unix",
        "args": "task sayhi",
        "output": "task.out"
      }]
    }
  }
}