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 5
/
jest.config.js
85 lines (85 loc) · 4.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
module.exports = {
globals: {
'ts-jest': {
useBabelrc: true,
tsConfigFile: './tsconfig.json',
},
},
testEnvironment: 'jsdom',
transform: {
'^.+\\.tsx?$': 'ts-jest',
'^.+\\.svg$': 'jest-svg-transformer',
},
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],
testResultsProcessor: 'jest-teamcity-reporter',
testRegex: '.*\\.spec\\.tsx?$',
testPathIgnorePatterns: ['/node_modules/', '/build/', '/dist/'],
coverageDirectory: 'coverage',
collectCoverageFrom: ['packages/**/*.{ts,tsx,js,jsx}', '!packages/**/*.d.ts'],
setupTestFrameworkScriptFile: './jestSetup.js',
moduleDirectories: [
'.',
'packages',
'packages/openland-x-utils',
'packages/openland-x',
'node_modules',
],
snapshotSerializers: ['jest-glamor-react'],
moduleNameMapper: {
//
// WARNING: ORDER MATTERS
//
'openland-unimoji/(.*)': '<rootDir>/packages/openland-unimoji/$1',
'openland-unimoji': '<rootDir>/packages/openland-unimoji',
'openland-unicorn/(.*)': '<rootDir>/packages/openland-unicorn/$1',
'openland-unicorn': '<rootDir>/packages/openland-unicorn',
'openland-form/(.*)': '<rootDir>/packages/openland-form/$1',
'openland-form': '<rootDir>/packages/openland-form',
'openland-apps/(.*)': '<rootDir>/packages/openland-apps/$1',
'openland-apps': '<rootDir>/packages/openland-apps',
'openland-graphql/(.*)': '<rootDir>/packages/openland-graphql/$1',
'openland-graphql': '<rootDir>/packages/openland-graphql',
'openland-y-utils/(.*)': '<rootDir>/packages/openland-y-utils/$1',
'openland-y-utils': '<rootDir>/packages/openland-y-utils',
'openland-y-runtime-web/(.*)': '<rootDir>/packages/openland-y-runtime-web/$1',
'openland-y-runtime-web': '<rootDir>/packages/openland-y-runtime-web',
'openland-y-runtime-api/(.*)': '<rootDir>/packages/openland-y-runtime-api/$1',
'openland-y-runtime-api': '<rootDir>/packages/openland-y-runtime-api',
'openland-y-runtime/(.*)': '<rootDir>/packages/openland-y-runtime/$1',
'openland-y-runtime': '<rootDir>/packages/openland-y-runtime',
'openland-api/(.*)': '<rootDir>/packages/openland-api/$1',
'openland-api': '<rootDir>/packages/openland-api',
'openland-text/(.*)': '<rootDir>/packages/openland-text/$1',
'openland-text': '<rootDir>/packages/openland-text',
'openland-x-routing/(.*)': '<rootDir>/packages/openland-x-routing/$1',
'openland-x-routing': '<rootDir>/packages/openland-x-routing',
'openland-x-utils/(.*)': '<rootDir>/packages/openland-x-utils/$1',
'openland-x-utils': '<rootDir>/packages/openland-x-utils',
'openland-x-forms/(.*)': '<rootDir>/packages/openland-x-forms/$1',
'openland-x-forms': '<rootDir>/packages/openland-x-forms',
'openland-x-permissions/(.*)': '<rootDir>/packages/openland-x-permissions/$1',
'openland-x-permissions': '<rootDir>/packages/openland-x-permissions',
'openland-x-graphql/(.*)': '<rootDir>/packages/openland-x-graphql/$1',
'openland-x-graphql': '<rootDir>/packages/openland-x-graphql',
'openland-x-analytics/(.*)': '<rootDir>/packages/openland-x-analytics/$1',
'openland-x-analytics': '<rootDir>/packages/openland-x-analytics',
'openland-y-store/(.*)': '<rootDir>/packages/openland-y-store/$1',
'openland-y-store': '<rootDir>/packages/openland-y-store',
'openland-x-graphql-gen/(.*)': '<rootDir>/packages/openland-x-graphql-gen/$1',
'openland-x-graphql-gen': '<rootDir>/packages/openland-x-graphql-gen',
'openland-x-config/(.*)': '<rootDir>/packages/openland-x-config/$1',
'openland-x-config': '<rootDir>/packages/openland-x-config',
'openland-x/(.*)': '<rootDir>/packages/openland-x/$1',
'openland-x': '<rootDir>/packages/openland-x',
'openland-icons/(.*)': '<rootDir>/packages/openland-icons/$1',
'openland-icons': '<rootDir>/packages/openland-icons',
'openland-shared/(.*)': '<rootDir>/packages/openland-shared/$1',
'openland-shared': '<rootDir>/packages/openland-shared',
'openland-landing/(.*)': '<rootDir>/packages/openland-landing/$1',
'openland-landing': '<rootDir>/packages/openland-landing',
'openland-web/(.*)': '<rootDir>/packages/openland-web/$1',
'openland-web': '<rootDir>/packages/openland-web',
'openland-video/(.*)': '<rootDir>/packages/openland-video/$1',
'openland-video': '<rootDir>/packages/openland-video',
},
};