diff --git a/.gitignore b/.gitignore index c10cb6a8..19285d6a 100644 --- a/.gitignore +++ b/.gitignore @@ -4,6 +4,7 @@ # testing /coverage /.stryker-tmp +/reports # production /build diff --git a/stryker.conf.js b/stryker.conf.js index a58eeaef..120963da 100644 --- a/stryker.conf.js +++ b/stryker.conf.js @@ -1,12 +1,19 @@ +const jestConfig = require(`${__dirname}/jest.config.js`); + +// reporters: clear-text + module.exports = (config) => config.set({ - mutate: [ 'src/**/*.js' ], - mutator: 'javascript', + mutate: jestConfig.collectCoverageFrom, + mutator: { + name: 'javascript', + excludedMutations: [ 'BooleanSubstitution', 'StringLiteral' ], + }, testRunner: 'jest', - reporters: [ 'progress', 'clear-text', 'html' ], + reporters: [ 'progress' ], coverageAnalysis: 'off', jest: { projectType: 'custom', - config: require(`${__dirname}/jest.config.js`), + config: jestConfig, enableFindRelatedTests: true, }, thresholds: {