-
Notifications
You must be signed in to change notification settings - Fork 49
/
Copy pathjest.preset.js
27 lines (26 loc) · 953 Bytes
/
jest.preset.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
const nxPreset = require('@nx/jest/preset').default
module.exports = {
...nxPreset,
collectCoverage: true,
coverageReporters: ['html', 'clover'],
collectCoverageFrom: [
'**/*.ts',
'!**/__tests__/**',
'!*.spec.ts',
'!**/dist/**',
'!**/node_modules/**',
'!**/jest.config.ts',
'!**/jest.e2e.ts'
],
moduleNameMapper: {
'@ptc-org/nestjs-query-core': process.cwd() + '/packages/core/src',
'@ptc-org/nestjs-query-graphql': process.cwd() + '/packages/query-graphql/src',
'@ptc-org/nestjs-query-typeorm': process.cwd() + '/packages/query-typeorm/src',
'@ptc-org/nestjs-query-sequelize': process.cwd() + '/packages/query-sequelize/src',
'@ptc-org/nestjs-query-typegoose': process.cwd() + '/packages/query-typegoose/src',
'@ptc-org/nestjs-query-mongoose': process.cwd() + '/packages/query-mongoose/src'
},
testEnvironment: 'node',
setupFilesAfterEnv: ['jest-extended'],
testTimeout: 10000
}