forked from Dygmalab/Bazecor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
wallaby.config.js
39 lines (33 loc) · 873 Bytes
/
wallaby.config.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
39
module.exports = function(wallaby) {
return {
files: [
"src/**/*.+(js|jsx|json|snap|css|less|sass|scss|jpg|jpeg|gif|png|svg)",
"jest.config.js", // <--
"!src/**/__tests__/*.js",
"!src/**/*.test.js",
"config/**/*.js"
],
tests: ["src/renderer/**/*.test.js", "src/renderer/**/__tests__/*.js"],
env: {
type: "node",
runner: require("electron"),
params: {
env: "ELECTRON_RUN_AS_NODE=true"
}
},
testFramework: "jest",
compilers: {
"**/*.js": wallaby.compilers.babel()
},
workers: {
initial: 6,
regular: 2
},
setup: function(wallaby) {
var jestConfig = require("./jest.config.js");
delete jestConfig.transform["^.+\\.(js|jsx)$"];
delete jestConfig.testEnvironment;
wallaby.testFramework.configure(jestConfig);
}
};
};