mirror of
https://gitee.com/nocobase/nocobase.git
synced 2024-12-01 11:47:51 +08:00
25 lines
533 B
JavaScript
25 lines
533 B
JavaScript
const path = require('path');
|
|
|
|
module.exports = {
|
|
preset: 'ts-jest',
|
|
testEnvironment: 'node',
|
|
setupFilesAfterEnv: [
|
|
path.resolve(__dirname, 'dotenv.js'),
|
|
],
|
|
testMatch: [
|
|
// '**/__tests__/**/*.[jt]s?(x)',
|
|
'**/?(*.)+(spec|test).[jt]s?(x)'
|
|
],
|
|
modulePathIgnorePatterns: [
|
|
"<rootDir>/.dumi/",
|
|
"<rootDir>/packages/father-build/",
|
|
"<rootDir>/packages/client/lib/"
|
|
],
|
|
globals: {
|
|
'ts-jest': {
|
|
babelConfig: true,
|
|
tsconfig: 'tsconfig.jest.json',
|
|
diagnostics: false,
|
|
},
|
|
},
|
|
}; |