-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathjest.config.js
83 lines (83 loc) · 5.22 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
module.exports = {
preset: 'jest-preset-angular',
setupFilesAfterEnv: ['<rootDir>/src/test-setup.ts'],
globals: {
'ts-jest': {
tsconfig: '<rootDir>/tsconfig.spec.json',
stringifyContentPathRegex: '\\.(html|svg)$',
},
},
coverageDirectory: 'coverage',
snapshotSerializers: [
'jest-preset-angular/build/serializers/no-ng-attributes',
'jest-preset-angular/build/serializers/ng-snapshot',
'jest-preset-angular/build/serializers/html-comment',
],
testRunner: 'jest-jasmine2',
moduleNameMapper: {
'@app/ui/theme/layout': ['<rootDir>/src/app/ui/theme/layout/index.ts'],
'@app/ui/theme/utils': ['<rootDir>/src/app/ui/theme/utils/index.ts'],
'@app/ui/icons': ['<rootDir>/src/app/ui/icons/index.ts'],
'@app/ui/spinner': ['<rootDir>/src/app/ui/spinner/index.ts'],
'@app/ui/carousel': ['<rootDir>/src/app/ui/carousel/index.ts'],
'@app/ui/container': ['<rootDir>/src/app/ui/container/index.ts'],
'@app/ui/grid': ['<rootDir>/src/app/ui/grid/index.ts'],
'@app/ui/shared': ['<rootDir>/src/app/ui/shared/index.ts'],
'@app/core/common': ['<rootDir>/src/app/core/common/index.ts'],
'@app/core/config': ['<rootDir>/src/app/core/config/index.ts'],
'@app/core/environments': ['<rootDir>/src/app/core/environments/index.ts'],
'@app/core/logger': ['<rootDir>/src/app/core/logger/index.ts'],
'@app/core/storage': ['<rootDir>/src/app/core/storage/index.ts'],
'@app/core/store/root': ['<rootDir>/src/app/core/store/root/index.ts'],
'@app/core/store/watcher': ['<rootDir>/src/app/core/store/watcher/index.ts'],
'@app/core/store/utils': ['<rootDir>/src/app/core/store/utils/index.ts'],
'@app/core/navigation/common': ['<rootDir>/src/app/core/navigation/common/index.ts'],
'@app/core/navigation/service': ['<rootDir>/src/app/core/navigation/service/index.ts'],
'@app/core/navigation/shared': ['<rootDir>/src/app/core/navigation/shared/index.ts'],
'@app/core/forms/shared': ['<rootDir>/src/app/core/forms/shared/index.ts'],
'@app/core/forms/utils': ['<rootDir>/src/app/core/forms/utils/index.ts'],
'@app/core/forms/errors': ['<rootDir>/src/app/core/forms/errors/index.ts'],
'@app/core/numerals/common': ['<rootDir>/src/app/core/numerals/common/index.ts'],
'@app/core/numerals/shared': ['<rootDir>/src/app/core/numerals/shared/index.ts'],
'@app/core/numerals/utils': ['<rootDir>/src/app/core/numerals/utils/index.ts'],
'@app/core/platform': ['<rootDir>/src/app/core/platform/index.ts'],
'@app/core/testing': ['<rootDir>/src/app/core/testing/index.ts'],
'@app/rooms/common': ['<rootDir>/src/app/rooms/common/index.ts'],
'@app/rooms/manager': ['<rootDir>/src/app/rooms/manager/index.ts'],
'@app/rooms/admin-page': ['<rootDir>/src/app/rooms/admin-page/index.ts'],
'@app/rooms/page': ['<rootDir>/src/app/rooms/page/index.ts'],
'@app/rooms/storage': ['<rootDir>/src/app/rooms/storage/index.ts'],
'@app/rooms/service': ['<rootDir>/src/app/rooms/service/index.ts'],
'@app/rooms/state': ['<rootDir>/src/app/rooms/state/index.ts'],
'@app/rooms/shared': ['<rootDir>/src/app/rooms/shared/index.ts'],
'@app/buildings/admin-page': ['<rootDir>/src/app/buildings/admin-page/index.ts'],
'@app/buildings/common': ['<rootDir>/src/app/buildings/common/index.ts'],
'@app/buildings/storage': ['<rootDir>/src/app/buildings/storage/index.ts'],
'@app/buildings/service': ['<rootDir>/src/app/buildings/service/index.ts'],
'@app/buildings/state': ['<rootDir>/src/app/buildings/state/index.ts'],
'@app/buildings/manager': ['<rootDir>/src/app/buildings/manager/index.ts'],
'@app/buildings/shared': ['<rootDir>/src/app/buildings/shared/index.ts'],
'@app/persons/admin-page': ['<rootDir>/src/app/persons/admin-page/index.ts'],
'@app/persons/common': ['<rootDir>/src/app/persons/common/index.ts'],
'@app/persons/storage': ['<rootDir>/src/app/persons/storage/index.ts'],
'@app/persons/service': ['<rootDir>/src/app/persons/service/index.ts'],
'@app/persons/state': ['<rootDir>/src/app/persons/state/index.ts'],
'@app/persons/shared': ['<rootDir>/src/app/persons/shared/index.ts'],
'@app/persons/manager': ['<rootDir>/src/app/persons/manager/index.ts'],
'@app/booking/common': ['<rootDir>/src/app/booking/common/index.ts'],
'@app/booking/page': ['<rootDir>/src/app/booking/page/index.ts'],
'@app/booking/service': ['<rootDir>/src/app/booking/service/index.ts'],
'@app/booking/state': ['<rootDir>/src/app/booking/state/index.ts'],
'@app/booking/shared': ['<rootDir>/src/app/booking/shared/index.ts'],
'@app/maps/common': ['<rootDir>/src/app/maps/common/index.ts'],
'@app/maps/services': ['<rootDir>/src/app/maps/services/index.ts'],
'@app/maps/shared': ['<rootDir>/src/app/maps/shared/index.ts'],
'@app/admin/layout': ['<rootDir>/src/app/admin/layout/index.ts'],
'@app/admin/menu': ['<rootDir>/src/app/admin/menu/index.ts'],
'@app/admin/page': ['<rootDir>/src/app/admin/page/index.ts'],
'@app/admin/view/shared': ['<rootDir>/src/app/admin/view/shared/index.ts'],
'@app/admin/links/shared': ['<rootDir>/src/app/admin/links/shared/index.ts'],
'@app/errors/shared': ['<rootDir>/src/app/errors/shared/index.ts'],
'@app/errors/not-found/page': ['<rootDir>/src/app/errors/not-found/page/index.ts'],
},
};