-
Notifications
You must be signed in to change notification settings - Fork 42
Expand file tree
/
Copy pathjest.config.js
More file actions
19 lines (19 loc) · 821 Bytes
/
Copy pathjest.config.js
File metadata and controls
19 lines (19 loc) · 821 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/** @type {import('ts-jest').JestConfigWithTsJest} */
module.exports = {
preset: 'ts-jest',
testEnvironment: 'jsdom',
setupFilesAfterEnv: ['./tests/setupTests.js'],
transform: {
'\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$':
'<rootDir>/tests/fileTransformer.js',
},
moduleNameMapper: {
'\\.(css|scss|less)$': '<rootDir>/tests/styleMock.js',
// make tests access in handsontable@6.22.0
'@babel/polyfill/lib/noConflict': '<rootDir>/tests/styleMock.js',
'^lodash-es$': 'lodash',
'react-markdown': '<rootDir>/node_modules/react-markdown/react-markdown.min.js',
'@dtinsight/react-icons': '<rootDir>/tests/iconMock.js',
'@dtinsight/dt-utils': '<rootDir>/tests/dtUtilsMock.js',
},
};