-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathjest.config.ts
44 lines (42 loc) · 1.04 KB
/
jest.config.ts
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
import type {InitialOptionsTsJest} from 'ts-jest/dist/types';
const config: InitialOptionsTsJest = {
projects: [
'<rootDir>/client.jest.config.ts',
'<rootDir>/server.jest.config.ts',
],
coverageProvider: 'v8',
collectCoverageFrom: [
'**/*.{js,jsx,ts,tsx}',
'!**/*.d.ts',
'!**/*.config.*',
'!**/*.test.*',
'!**/.*',
'!**/.next/**',
'!**/build/**',
'!**/coverage/**',
'!**/csp/**',
'!**/node_modules/**',
'!**/styles/**',
'!**/tests/**',
],
coveragePathIgnorePatterns: [
'**/tests/',
'**/styles/',
'**/public/',
'**/static/',
'**/build/',
'**/.next/',
'**/node_modules/',
'**/csp/',
'package.json',
],
testTimeout: 60000,
reporters: ['default', 'github-actions'],
verbose: true,
// A map from regular expressions to module names that allow to stub out resources with a single module
moduleNameMapper: {
'@unstoppabledomains/(.*)': '<rootDir>/../packages/src/$1',
'@unstoppabledomains': '<rootDir>/../packages/src',
},
};
export default config;