1 | {
|
2 | "$schema": "http://json-schema.org/schema",
|
3 | "$id": "NxJestProject",
|
4 | "cli": "nx",
|
5 | "title": "Add Jest Configuration to a project",
|
6 | "description": "Add Jest Configuration to a project.",
|
7 | "type": "object",
|
8 | "properties": {
|
9 | "project": {
|
10 | "type": "string",
|
11 | "description": "The name of the project.",
|
12 | "$default": {
|
13 | "$source": "projectName"
|
14 | }
|
15 | },
|
16 | "skipSetupFile": {
|
17 | "type": "boolean",
|
18 | "description": "[Deprecated]: Skips the setup file required for angular. (Use `--setup-file`)",
|
19 | "default": false,
|
20 | "x-deprecated": true
|
21 | },
|
22 | "setupFile": {
|
23 | "type": "string",
|
24 | "enum": ["none", "angular", "web-components"],
|
25 | "description": "The setup file to be generated.",
|
26 | "default": "none"
|
27 | },
|
28 | "skipSerializers": {
|
29 | "type": "boolean",
|
30 | "description": "Skips the serializers required to snapshot angular templates.",
|
31 | "default": false
|
32 | },
|
33 | "supportTsx": {
|
34 | "type": "boolean",
|
35 | "description": "Setup `tsx` support.",
|
36 | "default": false
|
37 | },
|
38 | "testEnvironment": {
|
39 | "type": "string",
|
40 | "enum": ["jsdom", "node"],
|
41 | "description": "The test environment for jest.",
|
42 | "default": "jsdom"
|
43 | },
|
44 | "compiler": {
|
45 | "type": "string",
|
46 | "enum": ["tsc", "babel", "swc"],
|
47 | "description": "The compiler to use for source and tests.",
|
48 | "default": "tsc"
|
49 | },
|
50 | "babelJest": {
|
51 | "type": "boolean",
|
52 | "alias": "babel-jest",
|
53 | "description": "Use `babel-jest` instead of `ts-jest` (Deprecated: Use `--compiler=babel` instead).",
|
54 | "x-deprecated": true,
|
55 | "default": false
|
56 | },
|
57 | "skipFormat": {
|
58 | "description": "Skip formatting files",
|
59 | "type": "boolean",
|
60 | "default": false
|
61 | },
|
62 | "skipPackageJson": {
|
63 | "type": "boolean",
|
64 | "default": false,
|
65 | "description": "Do not add dependencies to `package.json`."
|
66 | },
|
67 | "js": {
|
68 | "type": "boolean",
|
69 | "default": false,
|
70 | "description": "Use JavaScript instead of TypeScript for config files"
|
71 | }
|
72 | },
|
73 | "required": []
|
74 | }
|