This repository has been archived by the owner on Feb 17, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
jest.config.js
98 lines (97 loc) · 5.58 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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
module.exports = {
setupTestFrameworkScriptFile: './jest.setup.js',
testEnvironment: 'node',
transform: {
"^.+\\.tsx?$": "ts-jest"
},
moduleFileExtensions: [
'ts',
'tsx',
'js',
'jsx',
'json',
'node'
],
moduleDirectories: [
'node_modules',
'packages'
],
testResultsProcessor: 'jest-teamcity-reporter',
testRegex: '.*\\.spec\\.(ts)x?$',
testPathIgnorePatterns: ['/node_modules/'],
coverageDirectory: 'coverage',
collectCoverageFrom: [
'packages/**/*.{ts,tsx,js,jsx}',
'!packages/**/*.d.ts',
'!packages/tables/migrations/*.ts',
'!packages/tables/data/*.ts',
'!packages/tests/**/*',
],
moduleNameMapper: {
//
// WARNING: ORDER MATTERS
//
'foundation-orm-gen/(.*)': '<rootDir>/packages/foundation-orm-gen/$1',
'foundation-orm-gen': '<rootDir>/packages/foundation-orm-gen',
'foundation-orm/(.*)': '<rootDir>/packages/foundation-orm/$1',
'foundation-orm': '<rootDir>/packages/foundation-orm',
'openland-server-tests/(.*)': '<rootDir>/packages/openland-server-tests/$1',
'openland-server-tests': '<rootDir>/packages/openland-server-tests',
// 'openland-server/(.*)': '<rootDir>/packages/openland-server/$1',
// 'openland-server': '<rootDir>/packages/openland-server',
'openland-modules/(.*)': '<rootDir>/packages/openland-modules/$1',
'openland-modules': '<rootDir>/packages/openland-modules',
'openland-module-video/(.*)': '<rootDir>/packages/openland-module-video/$1',
'openland-module-video': '<rootDir>/packages/openland-module-video',
'openland-module-monitoring/(.*)': '<rootDir>/packages/openland-module-monitoring/$1',
'openland-module-monitoring': '<rootDir>/packages/openland-module-monitoring',
'openland-module-email/(.*)': '<rootDir>/packages/openland-module-email/$1',
'openland-module-email': '<rootDir>/packages/openland-module-email',
'openland-module-presences/(.*)': '<rootDir>/packages/openland-module-presences/$1',
'openland-module-presences': '<rootDir>/packages/openland-module-presences',
'openland-module-push/(.*)': '<rootDir>/packages/openland-module-push/$1',
'openland-module-push': '<rootDir>/packages/openland-module-push',
'openland-module-workers/(.*)': '<rootDir>/packages/openland-module-workers/$1',
'openland-module-workers': '<rootDir>/packages/openland-module-workers',
'openland-module-organization/(.*)': '<rootDir>/packages/openland-module-organization/$1',
'openland-module-organization': '<rootDir>/packages/openland-module-organization',
'openland-module-media/(.*)': '<rootDir>/packages/openland-module-media/$1',
'openland-module-media': '<rootDir>/packages/openland-module-media',
'openland-module-api/(.*)': '<rootDir>/packages/openland-module-api/$1',
'openland-module-api': '<rootDir>/packages/openland-module-api',
'openland-module-social-image/(.*)': '<rootDir>/packages/openland-module-social-image/$1',
'openland-module-social-image': '<rootDir>/packages/openland-module-social-image',
'openland-module-social/(.*)': '<rootDir>/packages/openland-module-social/$1',
'openland-module-social': '<rootDir>/packages/openland-module-social',
'openland-module-feed/(.*)': '<rootDir>/packages/openland-module-feed/$1',
'openland-module-feed': '<rootDir>/packages/openland-module-feed',
'openland-module-hooks/(.*)': '<rootDir>/packages/openland-module-hooks/$1',
'openland-module-hooks': '<rootDir>/packages/openland-module-hooks',
'openland-module-wallet/(.*)': '<rootDir>/packages/openland-module-wallet/$1',
'openland-module-wallet': '<rootDir>/packages/openland-module-wallet',
'openland-module-discussions/(.*)': '<rootDir>/packages/openland-module-discussions/$1',
'openland-module-discussions': '<rootDir>/packages/openland-module-discussions',
'openland-module-events/(.*)': '<rootDir>/packages/openland-module-events/$1',
'openland-module-events': '<rootDir>/packages/openland-module-events',
'openland-module-sharding/(.*)': '<rootDir>/packages/openland-module-sharding/$1',
'openland-module-sharding': '<rootDir>/packages/openland-module-sharding',
'openland-repositories/(.*)': '<rootDir>/packages/openland-repositories/$1',
'openland-repositories': '<rootDir>/packages/openland-repositories',
'openland-mtproto3/(.*)': '<rootDir>/packages/openland-mtproto3/$1',
'openland-mtproto3': '<rootDir>/packages/openland-mtproto3',
'openland-utils/(.*)': '<rootDir>/packages/openland-utils/$1',
'openland-utils': '<rootDir>/packages/openland-utils',
'openland-log/(.*)': '<rootDir>/packages/openland-log/$1',
'openland-log': '<rootDir>/packages/openland-log',
'openland-errors/(.*)': '<rootDir>/packages/openland-errors/$1',
'openland-errors': '<rootDir>/packages/openland-errors',
'openland-security/(.*)': '<rootDir>/packages/openland-security/$1',
'openland-security': '<rootDir>/packages/openland-security',
'openland-cli/(.*)': '<rootDir>/packages/openland-cli/$1',
'openland-cli': '<rootDir>/packages/openland-cli',
'openland-config/(.*)': '<rootDir>/packages/openland-config/$1',
'openland-config': '<rootDir>/packages/openland-config',
'openland-spacex/(.*)': '<rootDir>/packages/openland-spacex/$1',
'openland-spacex': '<rootDir>/packages/openland-spacex',
}
};