Files
KaTeX/wallaby.js
ylemkimon 266fcb046c build: move font generation to the main repo (#2837)
* build: move font generation to the main repo

* Update fonts

* chore: remove submodules

* Update paths

* Update fonts.yml

Co-authored-by: Kevin Barabash <kevinb@khanacademy.org>
2021-03-30 03:21:59 +09:00

39 lines
980 B
JavaScript

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",
"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",
};
};