forked from mikro-orm/mikro-orm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.config.ts
35 lines (33 loc) · 952 Bytes
/
jest.config.ts
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
33
34
35
import type { Config } from '@jest/types';
const config: Config.InitialOptions = {
testTimeout: 30000,
preset: 'ts-jest',
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/better-sqlite',
],
setupFiles: [
'<rootDir>/tests/setup.ts',
],
globals: {
'ts-jest': {
tsconfig: 'tests/tsconfig.json',
isolatedModules: true,
},
},
};
export default config;