@stryker-mutator/jest-runner
Version:
A plugin to use the jest test runner and framework in Stryker, the JavaScript mutation testing framework
44 lines (43 loc) • 1.95 kB
JSON
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"title": "JestRunnerOptions",
"additionalItems": false,
"properties": {
"jest": {
"title": "JestOptions",
"description": "Configuration for @stryker-mutator/jest-runner",
"type": "object",
"default": {},
"properties": {
"projectType": {
"$ref": "#/definitions/jestProjectType",
"default": "custom"
},
"configFile": {
"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.",
"type": "string"
},
"config": {
"description": "A custom Jest configuration object. You could also use `require` to load it here.",
"type": "object"
},
"enableFindRelatedTests": {
"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)",
"type": "boolean",
"default": true
}
},
"additionalProperties": false
}
},
"definitions": {
"jestProjectType": {
"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`.",
"enum": [
"create-react-app",
"custom"
]
}
}
}