-
Notifications
You must be signed in to change notification settings - Fork 41
/
jest.config.js
54 lines (53 loc) · 1.35 KB
/
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
module.exports = {
bail: true,
globals: {
'ts-jest': {
stringifyContentPathRegex: '\\.html?$',
tsConfig: './tsconfig.test.json',
useExperimentalLanguageServer: true,
},
},
testURL: 'http://localhost',
preset: 'jest-preset-angular',
setupFilesAfterEnv: [
'<rootDir>/test/test-setup.ts',
],
moduleNameMapper: {
'@angular-skyhook/(.*)': '<rootDir>/packages/$1',
// https://react-dnd.github.io/react-dnd/docs/testing
"^dnd-core$": "dnd-core/dist/cjs",
"^react-dnd$": "react-dnd/dist/cjs",
"^react-dnd-html5-backend$": "react-dnd-html5-backend/dist/cjs",
"^react-dnd-touch-backend$": "react-dnd-touch-backend/dist/cjs",
"^react-dnd-test-backend$": "react-dnd-test-backend/dist/cjs",
"^react-dnd-test-utils$": "react-dnd-test-utils/dist/cjs"
},
testRegex: '.*spec.ts$',
moduleFileExtensions: [
'js',
'json',
'ts',
],
transformIgnorePatterns: [
'/dist/',
],
modulePathIgnorePatterns: [
'/node_modules/',
'/dist/',
],
projects: [
'<rootDir>',
],
collectCoverageFrom: [
'packages/core/*/src/**/*.ts',
'packages/multi-backend/*/src/**/*.ts',
'packages/sortable/*/src/**/*.ts',
],
coveragePathIgnorePatterns: [
'.*(spec|const|config|mock|module|public-api|index|mock|model|d).ts',
],
coverageReporters: [
'lcovonly',
'html',
],
}