-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathjest.config.js
More file actions
26 lines (26 loc) · 838 Bytes
/
jest.config.js
File metadata and controls
26 lines (26 loc) · 838 Bytes
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
module.exports = {
verbose: true,
testEnvironment: 'jsdom',
moduleFileExtensions: ['js', 'json', 'ts', 'tsx'],
rootDir: '.',
testMatch: ['**/*.unit.test.ts', '**/*.unit.test.tsx'],
transform: {
'^.+\\.tsx?$': [
'ts-jest',
{
tsconfig: {
jsx: 'react-jsx',
module: 'commonjs',
moduleResolution: 'node',
},
isolatedModules: true,
},
],
},
transformIgnorePatterns: ['node_modules/(?!(@gravity-ui)/)'],
moduleNameMapper: {
'\\.(css|scss|sass)$': '<rootDir>/test-utils/__mocks__/styleMock.js',
},
coverageDirectory: './coverage',
collectCoverageFrom: ['src/**/*.{ts,tsx}', '!**/__stories__/**/*', '!**/*/*.stories.{ts,tsx}'],
};