forked from SparebankenVest/react-css-collapse
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwallaby.js
More file actions
30 lines (28 loc) · 646 Bytes
/
wallaby.js
File metadata and controls
30 lines (28 loc) · 646 Bytes
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
module.exports = function (wallaby) {
return {
files: [
'src/**',
],
tests: [
'test/**/*.spec.js',
],
testFramework: 'mocha',
compilers: {
'**/*.js*': wallaby.compilers.babel(),
},
env: {
type: 'node',
},
setup: function() {
var jsdom = require('jsdom');
global.document = jsdom.jsdom('');
global.window = document.defaultView;
Object.keys(document.defaultView).forEach((property) => {
if (typeof global[property] === 'undefined') {
global[property] = document.defaultView[property];
}
});
},
debug: true,
};
};