-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.config.js
31 lines (30 loc) · 945 Bytes
/
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
const {createJsWithTsPreset} = require('ts-jest');
const esModules = [
'@gravity-ui/date-utils',
'd3',
'd3-array',
'internmap',
'delaunator',
'robust-predicates',
].join('|');
module.exports = {
// verbose: true,
// preset: 'ts-jest',
// testEnvironment: 'jsdom',
// transform: {
// '^.+\\.(js|ts)?$': 'ts-jest',
// },
// modulePathIgnorePatterns: ['<rootDir>/build/'],
// transformIgnorePatterns: [`<rootDir>/node_modules/(?!${esModules})`],
// moduleNameMapper: {
// '^.+\\.(css|scss)$': '<rootDir>/test-utils/style.mock.ts',
// },
// setupFiles: ['<rootDir>/test-utils/globals.mock.ts'],
// testPathIgnorePatterns: ['.visual.'],
...createJsWithTsPreset(),
transform: {
'^.+\\.(js|ts)?$': ['ts-jest', {useESM: true}],
},
transformIgnorePatterns: [`<rootDir>/node_modules/(?!${esModules})`],
testMatch: ['**/*.test.[jt]s?(x)'],
};