UNPKG

1.21 kBJSONView Raw
1{
2 "$schema": "http://json-schema.org/schema",
3 "$id": "NxJestInit",
4 "cli": "nx",
5 "title": "Jest init",
6 "description": "Add Jest Configuration to a workspace.",
7 "type": "object",
8 "properties": {
9 "babelJest": {
10 "type": "boolean",
11 "alias": "babel-jest",
12 "description": "Use `babel-jest` instead of `ts-jest`.",
13 "default": false
14 },
15 "skipPackageJson": {
16 "type": "boolean",
17 "default": false,
18 "description": "Do not add dependencies to `package.json`.",
19 "x-priority": "internal"
20 },
21 "testEnvironment": {
22 "type": "string",
23 "enum": ["jsdom", "node", "none"],
24 "description": "The test environment for jest. This controls which jest-environment-* package is installed",
25 "default": "jsdom",
26 "x-priority": "important"
27 },
28 "js": {
29 "type": "boolean",
30 "default": false,
31 "description": "Use JavaScript instead of TypeScript for config files"
32 },
33 "rootProject": {
34 "description": "initialize Jest for an application at the root of the workspace",
35 "type": "boolean",
36 "default": false,
37 "hidden": true,
38 "x-priority": "internal"
39 }
40 },
41 "required": []
42}