-
Notifications
You must be signed in to change notification settings - Fork 1
/
jest.config.ts
53 lines (51 loc) · 1.7 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
45
46
47
48
49
50
51
52
53
import type { Config } from '@jest/types';
const config: Config.InitialOptions = {
coverageDirectory: '<rootDir>/coverage/',
coveragePathIgnorePatterns: ['node_modules', '<rootDir>/packages/**/tests'],
projects: [
{
displayName: 'SDK-Client',
testMatch: ['<rootDir>/packages/sdk-client/tests/**/*.test.ts'],
coveragePathIgnorePatterns: ['node_modules', 'tests'],
},
{
displayName: 'Conversation',
testMatch: ['<rootDir>/packages/conversation/tests/**/*.test.ts'],
coveragePathIgnorePatterns: ['node_modules', 'tests'],
},
{
displayName: 'Elastic SIP Trunking',
testMatch: ['<rootDir>/packages/elastic-sip-trunking/tests/**/*.test.ts'],
coveragePathIgnorePatterns: ['node_modules', 'tests'],
},
{
displayName: 'Fax',
testMatch: ['<rootDir>/packages/fax/tests/**/*.test.ts'],
coveragePathIgnorePatterns: ['node_modules', 'tests'],
},
{
displayName: 'Numbers',
testMatch: ['<rootDir>/packages/numbers/tests/**/*.test.ts'],
coveragePathIgnorePatterns: ['node_modules', 'tests'],
},
{
displayName: 'SMS',
testMatch: ['<rootDir>/packages/sms/tests/**/*.test.ts'],
coveragePathIgnorePatterns: ['node_modules', 'tests'],
},
{
displayName: 'Verification',
testMatch: ['<rootDir>/packages/verification/tests/**/*.test.ts'],
coveragePathIgnorePatterns: ['node_modules', 'tests'],
},
{
displayName: 'Voice',
testMatch: ['<rootDir>/packages/voice/tests/**/*.test.ts'],
coveragePathIgnorePatterns: ['node_modules', 'tests'],
},
],
moduleNameMapper: {
'@sinch/(.+)': '<rootDir>/packages/$1/src',
},
};
export default config;