-
Notifications
You must be signed in to change notification settings - Fork 1
/
jest.config.base.js
32 lines (30 loc) · 1.02 KB
/
jest.config.base.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 = {
// preset: 'ts-jest',
transform: {
'^.+\\.ts?$': 'ts-jest',
},
moduleNameMapper: {},
testMatch: ['**/**.test.ts'],
collectCoverageFrom: [
'src/**/*.ts',
'!**/dist/**',
'!**/node_modules/**',
'!**/build/**',
'!**/stack.ts',
'!**/cdk.out/**',
'!**/test/**',
'!**/node_modules/**',
'!**/coverage/**',
],
coveragePathIgnorePatterns: ['/node_modules/', '/build/', '/dist/', '/coverage/'],
transformIgnorePatterns: ['/node_modules/', '/build/', '/dist/'],
watchPathIgnorePatterns: ['/node_modules/', '/build/', '/dist/', '/coverage/'],
coverageProvider: 'v8',
testEnvironment: 'node',
watchPlugins: ['jest-watch-typeahead/filename', 'jest-watch-typeahead/testname'],
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],
modulePathIgnorePatterns: ['/dist/', '/build/'],
// modulePaths: ['node_modules', '<rootDir>/test/'],
verbose: true,
collectCoverage: false,
};