-
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathjest.config.js
26 lines (25 loc) · 984 Bytes
/
jest.config.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
module.exports = {
rootDir: '.',
setupFilesAfterEnv: ['./jest.setup.js'],
moduleFileExtensions: ['js', 'json', 'ts'],
moduleNameMapper: {
'^@dripjs/(.*)': '<rootDir>/modules/$1',
},
modulePathIgnorePatterns: ['dist', '.history'],
globals: {
'ts-jest': {
tsConfig: './tsconfig.spec.json',
isolatedModules: true
},
},
transform: {
'^.+\\.ts$': 'ts-jest',
},
testMatch: ['<rootDir>/modules/**/*.spec.ts', '<rootDir>/projects/**/*.spec.ts'],
testURL: 'http://localhost/',
collectCoverageFrom: ['modules/**/*.{js,ts}', 'projects/**/*.{js,ts}', '!projects/**/main.{js,ts}', '!projects/**/index.{js,ts}', '!modules/**/index.{js,ts}', '!**/node_modules/**', '!**/vendor/**'],
coveragePathIgnorePatterns: ['/node_modules/', '/test-helpers/', '/main.{js,ts}', '/dist/', 'entity-test-bed', '/types/', '/tools/', '/rollup.config.js', '/common/websocket/ws'],
coverageReporters: ['json', 'lcov'],
verbose: true,
preset: 'ts-jest',
};