summaryrefslogtreecommitdiff
path: root/tests/specs/run/no_deno_json/__test__.jsonc
blob: b27e3cbff1f5176673c3433fc506cafa0bf3725c (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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
{
  "tempDir": true,
  "tests": {
    "no_config": {
      // --no-config
      "args": "run -L debug -A --no-config noconfig.ts",
      "output": "noconfig.out",
      "cwd": "code"
    },
    "no_npm": {
      // --no-npm
      "args": "run -L debug -A --no-npm noconfig.ts",
      "output": "noconfig.out",
      "cwd": "code"
    },
    "no_pkg_json_env_var": {
      // not auto-discovered with env var
      "args": "run -L debug -A noconfig.ts",
      "output": "no_package_json.out",
      "cwd": "code",
      "envs": {
        "DENO_NO_PACKAGE_JSON": "1"
      }
    },
    "no_pkg_json_imports": {
      // this should not use --quiet because we should ensure no package.json install occurs
      "args": "run -A no_package_json_imports.ts",
      "output": "no_package_json_imports.out",
      "cwd": "code"
    },
    "auto_discovered": {
      "steps": [
        {
          "args": "install",
          "output": "code/install.out",
          "cwd": "code"
        },
        {
          // auto-discovered node_modules relative package.json
          "args": "run -A main.js",
          "output": "code/sub_dir/main.out",
          "cwd": "code/sub_dir"
        }
      ]
    },
    "auto_discovered_arg": {
      "steps": [
        {
          "args": "install",
          "output": "code/install.out",
          "cwd": "code"
        },
        {
          // auto-discovered for local script arg
          "args": "run -L debug -A code/main.ts", // notice this is not in the sub dir
          "output": "main.out"
        }
      ]
    }
  }
}