forked from danger/danger-js
-
Notifications
You must be signed in to change notification settings - Fork 1
/
wallaby.js
28 lines (23 loc) · 898 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
module.exports = wallaby => {
const babel = JSON.parse(require("fs").readFileSync(require("path").join(__dirname, ".babelrc")))
babel.presets.push("babel-preset-jest")
return {
files: [
"tsconfig.json",
{ pattern: "source/**/fixtures/**/*.*", instrument: false },
"source/**/!(*.test).ts",
{ pattern: "package.json", instrument: false },
{ pattern: "source/runner/runners/_tests/vm2.test.ts", instrument: true, load: false, ignore: false },
{ pattern: "source/api/_tests/fetch.test.ts", instrument: true, load: false, ignore: false },
],
tests: ["source/**/*.test.ts"],
env: {
type: "node",
},
// fixtures are not instrumented, but still need to be compiled
preprocessors: {
"source/**/fixtures/**/*.js?(x)": file => require("babel-core").transform(file.content, babel),
},
testFramework: "jest",
}
}