forked from ginetta/ginetta-gatsby-source-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwallaby.js
38 lines (30 loc) · 850 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
34
35
36
37
38
module.exports = function(wallaby) {
// Babel, jest-cli and some other modules may be located under
// react-scripts/node_modules, so need to let node.js know about it
var path = require('path');
process.env.NODE_PATH +=
path.delimiter + path.join(__dirname, 'node_modules');
require('module').Module._initPaths();
return {
files: [
'src/**/*.+(js|jsx|json|snap|css|less|sass|scss|jpg|jpeg|gif|png|svg)',
'!src/**/*.test.js?(x)',
'!src/store.js',
'!src/index.js',
'!src/quokkaPlayground.js',
],
tests: ['src/**/*.test.js?(x)'],
env: {
type: 'node',
runner: 'node',
},
compilers: {
'**/*.js?(x)': wallaby.compilers.babel({}),
},
hints: {
ignoreCoverage: 'istanbul ignore',
},
setup: wallaby => {},
testFramework: 'jest',
};
};