-
Notifications
You must be signed in to change notification settings - Fork 6
/
jest.config.js
33 lines (33 loc) · 1.13 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
module.exports = {
preset: 'ts-jest',
modulePaths: ['<rootDir>/src'],
testEnvironment: 'jsdom',
coveragePathIgnorePatterns: ['stories.(ts|tsx)'],
collectCoverageFrom: [
'<rootDir>/src/core/**/*.(ts|tsx)',
'!<rootDir>/src/icons/**/*.(ts|tsx)',
'!<rootDir>/src/core/data-display/data-table/*.(ts|tsx)',
'!<rootDir>/src/core/data-display/table/table-pagination.tsx',
'!<rootDir>/src/core/feedback/dialog-v2/index.ts',
'!<rootDir>/src/core/feedback/tooltip/styles.ts',
'!<rootDir>/src/core/inputs/chip-field/index.tsx',
'!<rootDir>/src/core/inputs/date-time/index.tsx',
'!<rootDir>/src/core/inputs/select/index.tsx',
'!<rootDir>/src/core/navigation/breadcrumbs/index.tsx',
'!<rootDir>/src/core/surfaces/header/styles.ts',
],
transform: {
'.+\\.(ts|tsx)$': 'ts-jest'
},
moduleNameMapper: {
'\\.(scss|sass|css)$': 'identity-obj-proxy',
'@/(.*)': '<rootDir>/src/$1'
},
coverageThreshold: {
global: {
branches: 100,
functions: 100,
lines: 100
}
}
}