-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstryker.conf.js
23 lines (22 loc) · 931 Bytes
/
stryker.conf.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* eslint-disable unicorn/prevent-abbreviations */
/* eslint-disable-next-line @typescript-eslint/no-var-requires */
const path = require("path");
// This config was generated using a preset.
// Please see the handbook for more information: https://github.com/stryker-mutator/stryker-handbook/blob/master/stryker/guides/react.md#react
/* eslint-disable-next-line @typescript-eslint/explicit-function-return-type */
module.exports = function(config) {
config.set({
mutate: ["src/**/*.ts?(x)", "!src/**/*@(.test|.spec|Spec).ts?(x)"],
mutator: "typescript",
testRunner: "jest",
reporters: ["progress", "clear-text", "html"],
coverageAnalysis: "off",
jest: {
projectType: "custom",
// Only use the unit test project
config: require(path.resolve(__dirname, "./jest.config.js")).projects[0],
enableFindRelatedTests: true
}
});
};
/* eslint-enable unicorn/prevent-abbreviations */