mirror of
https://git.mirrors.martin98.com/https://github.com/jina-ai/reader
synced 2025-07-31 22:41:59 +08:00
30 lines
602 B
JavaScript
30 lines
602 B
JavaScript
/** @type {import('ts-jest').JestConfigWithTsJest} **/
|
|
module.exports = {
|
|
testEnvironment: "node",
|
|
verbose: true,
|
|
preset: 'ts-jest',
|
|
moduleFileExtensions: [
|
|
"js",
|
|
"ts",
|
|
"json",
|
|
"node"
|
|
],
|
|
transform: {
|
|
"^.+\\.tsx?$": ["ts-jest",{
|
|
tsconfig: "<rootDir>/test/tsconfig.test.json",
|
|
}],
|
|
},
|
|
moduleNameMapper: {
|
|
'^@/(.*)$': '<rootDir>/src/$1',
|
|
},
|
|
testMatch: [
|
|
"<rootDir>/test/e2e/**/*.test.ts"
|
|
],
|
|
setupFilesAfterEnv: [],
|
|
testPathIgnorePatterns: [
|
|
"<rootDir>/node_modules/",
|
|
"<rootDir>/dist/",
|
|
],
|
|
rootDir: '../',
|
|
testTimeout: 30000,
|
|
}; |