2020-10-24 15:34:43 +08:00
|
|
|
const path = require('path');
|
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
preset: 'ts-jest',
|
|
|
|
testEnvironment: 'node',
|
2021-01-26 22:44:21 +08:00
|
|
|
setupFilesAfterEnv: [path.resolve(__dirname, 'dotenv.js')],
|
2020-10-24 15:34:43 +08:00
|
|
|
testMatch: [
|
|
|
|
// '**/__tests__/**/*.[jt]s?(x)',
|
|
|
|
'**/?(*.)+(spec|test).[jt]s?(x)'
|
|
|
|
],
|
2020-12-02 13:23:09 +08:00
|
|
|
modulePathIgnorePatterns: [
|
2021-04-17 21:33:21 +08:00
|
|
|
"<rootDir>/.dumi/",
|
2020-12-02 13:23:09 +08:00
|
|
|
"<rootDir>/packages/father-build/"
|
|
|
|
],
|
2020-10-24 15:34:43 +08:00
|
|
|
};
|