1 Star 0 Fork 640

jcpbadboy/NocoBase

forked from NocoBase/NocoBase 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
jest.config.js 860 Bytes
一键复制 编辑 原始数据 按行查看 历史
chenos 提交于 2022-05-19 00:40 . feat: build, cli, devtools, sdk, docs...
const { pathsToModuleNameMapper } = require('ts-jest/utils');
const { compilerOptions } = require('./tsconfig.json');
module.exports = {
rootDir: process.cwd(),
collectCoverage: false,
verbose: true,
testEnvironment: 'jsdom',
preset: 'ts-jest',
testMatch: ['**/__tests__/**/*.test.[jt]s?(x)'],
setupFilesAfterEnv: [require.resolve('jest-dom/extend-expect'), './jest.setup.ts'],
moduleNameMapper: pathsToModuleNameMapper(compilerOptions.paths, {
prefix: '<rootDir>/',
}),
globals: {
'ts-jest': {
babelConfig: false,
tsconfig: './tsconfig.jest.json',
diagnostics: false,
},
},
modulePathIgnorePatterns: ['/esm/', '/es/', '/dist/', '/lib/'],
coveragePathIgnorePatterns: [
'/node_modules/',
'/__tests__/',
'/esm/',
'/lib/',
'package.json',
'/demo/',
'package-lock.json',
],
};
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
TypeScript
1
https://gitee.com/jcpbadboy/nocobase.git
git@gitee.com:jcpbadboy/nocobase.git
jcpbadboy
nocobase
NocoBase
main

搜索帮助

0d507c66 1850385 C8b1a773 1850385