-
Notifications
You must be signed in to change notification settings - Fork 142
/
wallaby.js
33 lines (28 loc) · 810 Bytes
/
wallaby.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
module.exports = wallaby => {
process.env.NODE_ENV = 'test'
return {
files: [
{ pattern: 'src/**/*.js', load: false },
{ pattern: 'package.json', load: false },
{ pattern: '__tests__/**/*.snap', load: false },
{ pattern: '__test-helpers__/**/*.js', load: false }
],
filesWithNoCoverageCalculated: ['__test-helpers__/**/*.js'],
tests: ['__tests__/**/*.js'],
env: {
type: 'node',
runner: 'node'
},
testFramework: 'jest',
compilers: {
'**/*.js': wallaby.compilers.babel({ babelrc: true })
},
setup(wallaby) {
const conf = require('./package.json').jest
wallaby.testFramework.configure(conf)
},
// runAllTestsInAffectedTestFile: true,
// runAllTestsInAffectedTestGroup: true,
debug: false
}
}