-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjest.config.unit.js
43 lines (43 loc) · 1.11 KB
/
jest.config.unit.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
33
34
35
36
37
38
39
40
41
42
43
module.exports = {
clearMocks: true,
collectCoverage: true,
coverageDirectory: 'coverage',
verbose: true,
preset: 'ts-jest',
testEnvironment: 'jest-environment-node',
testMatch: ['**/__tests__/**/*.unit.test.ts'],
collectCoverageFrom: [
'src/**/*.ts',
'!src/**/index.ts',
'!src/**/*.config.ts',
'!src/**/config.ts',
'!**/entity.ts',
'!**/query-model.ts',
'!**/use-case.ts',
'!**/*.repository.ts',
'!**/*.fixture.ts',
'!**/*.mock.ts',
'!**/*.error.ts',
'!**/*.errors.ts',
'!**/__tests__/**',
'!**/__mocks__/**',
'!src/**/*.enums.ts',
'!src/**/enums.ts',
'!src/**/*.dtos.ts',
'!src/**/*.types.ts',
'!src/**/repository.ts',
'!src/**/collection.source.ts',
'!src/**/rpc.source.ts',
'!**/contract.service.ts',
'!src/**/abi.service.ts',
'!src/**/blockchain.service.ts',
'!src/**/smart-contract.service.ts',
'!src/**/mapper.ts',
'!src/**/data.source.ts',
'!src/**/query-builders.ts',
'!src/**/serializer.ts',
'!src/**/dependency-injector.ts',
'!src/**/route-io.ts',
'!src/**/block-reader.ts',
],
};