forked from TriPSs/nestjs-query
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.preset.js
27 lines (25 loc) · 988 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('@nrwl/jest/preset').default;
module.exports = {
...nxPreset,
collectCoverage: true,
coverageReporters: ['html', 'clover'],
collectCoverageFrom: [
'packages/**/*.ts',
'!**/__tests__/**',
'!*.spec.ts',
'!**/dist/**',
'!**/node_modules/**',
'!**/jest.config.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'],
snapshotSerializers: ['jest-snapshot-serializer-raw/always']
};