forked from mikro-orm/mikro-orm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.config.js
32 lines (32 loc) · 935 Bytes
/
jest.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
module.exports = {
testTimeout: 30000,
transform: {
'^.+\\.tsx?$': ['ts-jest', {
tsconfig: 'tests/tsconfig.json',
isolatedModules: true,
}],
},
runtime: '@side/jest-runtime',
collectCoverage: false,
collectCoverageFrom: [
'<rootDir>/packages/*/src/**/*.ts',
],
moduleNameMapper: {
'@mikro-orm/mongo-highlighter': '<rootDir>/node_modules/@mikro-orm/mongo-highlighter',
'@mikro-orm/sql-highlighter': '<rootDir>/node_modules/@mikro-orm/sql-highlighter',
'@mikro-orm/(.*)/package.json': '<rootDir>/packages/$1/package.json',
'@mikro-orm/(.*)': '<rootDir>/packages/$1/src',
},
modulePathIgnorePatterns: [
'dist/package.json',
'<rootDir>/package.json',
],
coveragePathIgnorePatterns: [
'<rootDir>/packages/cli/src/cli.ts',
'<rootDir>/packages/cli/src/esm.ts',
'<rootDir>/packages/better-sqlite',
],
setupFiles: [
'<rootDir>/tests/setup.ts',
],
};