-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjest.config.base.js
35 lines (32 loc) · 1.15 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
33
34
35
// eslint-disable-next-line @typescript-eslint/no-var-requires
// const path = require('path');
module.exports = {
// setupFilesAfterEnv: [path.join(__dirname, './setup-tests.ts')],
transform: {
'^.+\\.[jt]sx?$': 'ts-jest',
},
moduleNameMapper: {},
collectCoverageFrom: [
'src/**/*.tsx',
'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,
};