Skip to content
代码片段 群组 项目
未验证 提交 2fa3c81a 编辑于 作者: Paul Slaughter's avatar Paul Slaughter
浏览文件

Add support for jh/jest.config.js

上级 28cf5c88
No related branches found
No related tags found
无相关合并请求
const fs = require('fs');
const IS_JH = require('./config/helpers/is_jh_env');
const baseConfig = require('./jest.config.base');
module.exports = {
...baseConfig('spec/frontend'),
};
// TODO: Remove existsSync once jh has added jest.config.js
if (IS_JH && fs.existsSync('./jh/jest.config.js')) {
// eslint-disable-next-line global-require, import/no-unresolved
module.exports = require('./jh/jest.config');
} else {
module.exports = {
...baseConfig('spec/frontend'),
};
}
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册