1 Star 0 Fork 527

人类重启源码研发组 / NocoBase

forked from NocoBase / NocoBase 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
jest.config.js 757 Bytes
一键复制 编辑 原始数据 按行查看 历史
const path = require('path');
const { pathsToModuleNameMapper } = require('ts-jest/utils');
const { compilerOptions } = require('./tsconfig.jest.json');
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
setupFilesAfterEnv: [
path.resolve(__dirname, 'dotenv.js'),
],
testMatch: [
// '**/__tests__/**/*.[jt]s?(x)',
'**/?(*.)+(spec|test).[jt]s?(x)'
],
moduleNameMapper: pathsToModuleNameMapper(compilerOptions.paths, {
prefix: '<rootDir>/',
}),
modulePathIgnorePatterns: [
"<rootDir>/.dumi/",
"<rootDir>/packages/father-build/",
"<rootDir>/packages/client/lib/"
],
globals: {
'ts-jest': {
babelConfig: true,
tsconfig: 'tsconfig.jest.json',
diagnostics: false,
},
},
};
TypeScript
1
https://gitee.com/rocket-source-group/nocobase.git
git@gitee.com:rocket-source-group/nocobase.git
rocket-source-group
nocobase
NocoBase
develop

搜索帮助

53164aa7 5694891 3bd8fe86 5694891