UNPKG

2.48 kBJSONView Raw
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 "x-priority": "important"
16 },
17 "skipSetupFile": {
18 "type": "boolean",
19 "description": "Skips the setup file required for angular.",
20 "default": false,
21 "x-deprecated": "Use `--setup-file` instead."
22 },
23 "setupFile": {
24 "type": "string",
25 "enum": ["none", "angular", "web-components"],
26 "description": "The setup file to be generated.",
27 "default": "none",
28 "x-priority": "important"
29 },
30 "skipSerializers": {
31 "type": "boolean",
32 "description": "Skips the serializers required to snapshot angular templates.",
33 "default": false
34 },
35 "supportTsx": {
36 "type": "boolean",
37 "description": "Setup `tsx` support.",
38 "default": false,
39 "x-priority": "important"
40 },
41 "testEnvironment": {
42 "type": "string",
43 "enum": ["jsdom", "node", "none"],
44 "description": "The test environment for jest.",
45 "default": "jsdom",
46 "x-priority": "important"
47 },
48 "compiler": {
49 "type": "string",
50 "enum": ["tsc", "babel", "swc"],
51 "description": "The compiler to use for source and tests.",
52 "default": "tsc"
53 },
54 "babelJest": {
55 "type": "boolean",
56 "alias": "babel-jest",
57 "description": "Use `babel-jest` instead of `ts-jest`.",
58 "x-deprecated": "Use `--compiler=babel` instead.",
59 "default": false
60 },
61 "skipFormat": {
62 "description": "Skip formatting files",
63 "type": "boolean",
64 "default": false,
65 "x-priority": "internal"
66 },
67 "skipPackageJson": {
68 "type": "boolean",
69 "default": false,
70 "description": "Do not add dependencies to `package.json`.",
71 "x-priority": "internal"
72 },
73 "js": {
74 "type": "boolean",
75 "default": false,
76 "description": "Use JavaScript instead of TypeScript for config files"
77 },
78 "rootProject": {
79 "description": "Add Jest to an application at the root of the workspace",
80 "type": "boolean",
81 "default": false,
82 "hidden": true,
83 "x-priority": "internal"
84 }
85 },
86 "required": []
87}