Skip to content

Commit b68cb77

Browse files
author
Chris Brody
authored
updates to setup of Stryker Mutator (#272)
* renamed `stryker` scripts entry in `package.json` * split `mutate` configuration into multiple lines in `stryker.conf.js` * split `reporters` configuration into multiple lines in `stryker.conf.js` * TBD commented out for now: add `bin/**/*.js` to mutate configuration in `stryker.conf.js` (there seems to be an issue with Stryker mutation testing on `bin/*.js`)
1 parent 0de40fa commit b68cb77

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"scripts": {
88
"jest": "jest",
99
"lint": "eslint .",
10-
"run-stryker": "stryker run",
10+
"stryker": "stryker run",
1111
"test": "npm run lint && npm run jest"
1212
},
1313
"repository": {

stryker.conf.js

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,21 @@
11
module.exports = config => {
22
config.set({
33
mutator: 'javascript',
4-
mutate: ['lib/**/*.js', 'templates/**/*.js', 'unsupported-platforms/**/*.js'],
4+
mutate: [
5+
// TBD there seems to be an issue with
6+
// Stryker mutation testing on
7+
// bin/*.js (...)
8+
// 'bin/**/*.js',
9+
'lib/**/*.js',
10+
'templates/**/*.js',
11+
'unsupported-platforms/**/*.js'
12+
],
513
packageManager: 'yarn',
6-
reporters: ['html', 'clear-text', 'progress'],
14+
reporters: [
15+
'html',
16+
'clear-text',
17+
'progress'
18+
],
719
testRunner: 'jest',
820
transpilers: [],
921
coverageAnalysis: 'off'

0 commit comments

Comments
 (0)