UNPKG

1.95 kBJSONView Raw
1{
2 "$schema": "http://json-schema.org/draft-07/schema#",
3 "type": "object",
4 "title": "JestRunnerOptions",
5 "additionalItems": false,
6 "properties": {
7 "jest": {
8 "title": "JestOptions",
9 "description": "Configuration for @stryker-mutator/jest-runner",
10 "type": "object",
11 "default": {},
12 "properties": {
13 "projectType": {
14 "$ref": "#/definitions/jestProjectType",
15 "default": "custom"
16 },
17 "configFile": {
18 "description": "Path to your Jest config file. Please leave it empty if you want jest configuration to be loaded from package.json or a standard jest configuration file.",
19 "type": "string"
20 },
21 "config": {
22 "description": "A custom Jest configuration object. You could also use `require` to load it here.",
23 "type": "object"
24 },
25 "enableFindRelatedTests": {
26 "description": "Whether to run jest with the `--findRelatedTests` flag. When `true`, Jest will only run tests related to the mutated file per test. (See [_--findRelatedTests_](https://jestjs.io/docs/en/cli.html#findrelatedtests-spaceseparatedlistofsourcefiles)",
27 "type": "boolean",
28 "default": true
29 }
30 },
31 "additionalProperties": false
32 }
33 },
34 "definitions": {
35 "jestProjectType": {
36 "description": "The type of project you are working on. \n* `custom` uses the `config` option. \n*`create-react-app` when you are using [create-react-app](https://github.com/facebook/create-react-app)\n* `react`: DEPRECATED, please use `create-react-app`.",
37 "enum": [
38 "create-react-app",
39 "custom"
40 ]
41 }
42 }
43}