From b83c0e0aba6f5b6f77bf7ce95dbf6a2308100d83 Mon Sep 17 00:00:00 2001 From: Alejandro Celaya Date: Sun, 21 Apr 2019 23:18:35 +0200 Subject: [PATCH] Improved stryker config --- .gitignore | 1 + stryker.conf.js | 15 +++++++++++---- 2 files changed, 12 insertions(+), 4 deletions(-) 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: {