-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwallaby.js
More file actions
51 lines (51 loc) · 1.1 KB
/
wallaby.js
File metadata and controls
51 lines (51 loc) · 1.1 KB
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
40
41
42
43
44
45
46
47
48
49
50
51
const path = require("path");
module.exports = wallaby => {
process.env.NODE_PATH +=
path.delimiter + path.join(wallaby.projectCacheDir, "packages");
/* eslint-disable no-path-concat */
return {
files: [
{
pattern: "packages/**",
load: true
},
{
pattern: "jest.*.js",
instrument: false
},
{
pattern: "packages/**/node_modules/**",
ignore: true
},
{
pattern: "packages/**/*.test.js",
ignore: true
}
],
tests: [
{
pattern: "packages/**/*.test.js"
},
{
pattern: "packages/**/node_modules/**",
ignore: true
}
],
compilers: {
"**/*.js": wallaby.compilers.babel()
},
env: {
type: "node"
},
setup: w => {
const jestConfig = require("./jest.config");
jestConfig.moduleNameMapper = {
"^@tailored/(.+)": w.projectCacheDir + "/packages/$1"
};
wallaby.testFramework.configure(jestConfig);
},
testFramework: "jest",
debug: true,
reportConsoleErrorAsError: true
};
};