mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2026-03-15 03:53:51 +00:00
Improved stryker config
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -4,6 +4,7 @@
|
|||||||
# testing
|
# testing
|
||||||
/coverage
|
/coverage
|
||||||
/.stryker-tmp
|
/.stryker-tmp
|
||||||
|
/reports
|
||||||
|
|
||||||
# production
|
# production
|
||||||
/build
|
/build
|
||||||
|
|||||||
@@ -1,12 +1,19 @@
|
|||||||
|
const jestConfig = require(`${__dirname}/jest.config.js`);
|
||||||
|
|
||||||
|
// reporters: clear-text
|
||||||
|
|
||||||
module.exports = (config) => config.set({
|
module.exports = (config) => config.set({
|
||||||
mutate: [ 'src/**/*.js' ],
|
mutate: jestConfig.collectCoverageFrom,
|
||||||
mutator: 'javascript',
|
mutator: {
|
||||||
|
name: 'javascript',
|
||||||
|
excludedMutations: [ 'BooleanSubstitution', 'StringLiteral' ],
|
||||||
|
},
|
||||||
testRunner: 'jest',
|
testRunner: 'jest',
|
||||||
reporters: [ 'progress', 'clear-text', 'html' ],
|
reporters: [ 'progress' ],
|
||||||
coverageAnalysis: 'off',
|
coverageAnalysis: 'off',
|
||||||
jest: {
|
jest: {
|
||||||
projectType: 'custom',
|
projectType: 'custom',
|
||||||
config: require(`${__dirname}/jest.config.js`),
|
config: jestConfig,
|
||||||
enableFindRelatedTests: true,
|
enableFindRelatedTests: true,
|
||||||
},
|
},
|
||||||
thresholds: {
|
thresholds: {
|
||||||
|
|||||||
Reference in New Issue
Block a user