forked from internxt/drive-desktop
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathjest.config.renderer.js
33 lines (33 loc) · 983 Bytes
/
jest.config.renderer.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
/* eslint-disable */
module.exports = {
testEnvironment: 'jsdom',
setupFilesAfterEnv: ['jest-extended/all', '<rootDir>/jest.setup.renderer.js'],
testMatch: ['**/*.test.(ts|tsx)'],
transform: {
'\\.(ts|tsx)$': [
'ts-jest',
{
tsconfig: 'tsconfig.test.json',
useESM: true,
},
],
'\\.(js|jsx)$': ['ts-jest', { useESM: true }],
},
moduleNameMapper: {
'\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$':
'<rootDir>/.erb/mocks/fileMock.js',
'\\.(css|less|sass|scss)$': 'identity-obj-proxy',
},
moduleFileExtensions: ['js', 'jsx', 'ts', 'tsx', 'json'],
testURL: 'http://localhost/',
transformIgnorePatterns: ['node_modules/(?!axios)'],
modulePathIgnorePatterns: ['<rootDir>/release/'],
moduleDirectories: ['node_modules', 'src'],
modulePaths: ['<rootDir>/src'],
extensionsToTreatAsEsm: ['.ts', '.tsx'],
globals: {
'ts-jest': {
useESM: true,
},
},
};