forked from firefox-devtools/debugger
-
Notifications
You must be signed in to change notification settings - Fork 0
/
wallaby.conf.js
41 lines (41 loc) · 1.46 KB
/
wallaby.conf.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
40
41
module.exports = function(wallaby) {
return {
files: [
{ pattern: "node_modules/workerjs/**", instrument: false },
{ pattern: "src/test/fixtures/*.js" },
{ pattern: "src/**/fixtures/*.+(js|html|json)", instrument: false },
{ pattern: "src/test/__mocks__/**", instrument: false },
{ pattern: "src/**/*.js" },
{ pattern: "!src/test/integration/**" },
{ pattern: "!src/test/mochitest/**" },
{ pattern: "!src/**/tests/*.js" },
{ pattern: "src/**/*.snap", instrument: false },
{ pattern: "bin/*.js" },
{ pattern: "configs/*.json", instrument: false },
{ pattern: "assets/images/Svg.js" },
{ pattern: "assets/**", instrument: false }
],
tests: [{ pattern: "!src/test/**" }, { pattern: "src/**/tests/*.js" }],
env: {
type: "node",
runner: "node"
},
testFramework: "jest",
reportUnhandledPromises: false,
compilers: {
"+(src|assets)/**/*.js": wallaby.compilers.babel()
},
preprocessors: {
"node_modules/workerjs/requireworker.js": f =>
`${f.content.replace(
"(modulePath) {",
`(modulePath) {modulePath=modulePath.replace(${JSON.stringify(
wallaby.projectCacheDir
)}, ${JSON.stringify(wallaby.localProjectDir)});`
)}\nglobal.$_$wpe = global.$_$wp = ` +
"global.$_$wf = global.$_$w = global.$_$wv = () => {};" +
" global.$_$tracer = { log: () => {} };"
},
debug: true
};
};