forked from KaTeX/KaTeX
-
Notifications
You must be signed in to change notification settings - Fork 0
/
wallaby.js
39 lines (32 loc) · 1014 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
29
30
31
32
33
34
35
36
37
38
39
const babelConfig = require("./babel.config.js");
module.exports = function(wallaby) {
const tests = [
"test/*-spec.js",
"contrib/**/test/*-spec.js",
];
return {
tests,
// Wallaby needs to know about all files that may be loaded because
// of running a test.
files: [
"src/**/*.js",
"test/**/*.js",
"contrib/**/*.js",
"submodules/**/*.js",
"katex.js",
// These paths are excluded.
...tests.map((test) => `!${test}`),
],
// Wallaby does its own compilation of .js files to support its
// advanced logging features. Wallaby can't parse the flow and
// JSX in our source files so need to provide a babel configuration.
compilers: {
"**/*.js": wallaby.compilers.babel(babelConfig),
},
env: {
type: "node",
runner: "node",
},
testFramework: "jest",
};
};