forked from StopNGo/react-proto
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.config.ts
26 lines (24 loc) · 954 Bytes
/
jest.config.ts
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
import type { Config } from 'jest';
const config: Config = {
verbose: true,
preset: 'ts-jest',
testEnvironment: 'jsdom',
moduleNameMapper: {
'\\.(css|less|scss|sss|styl)$': 'identity-obj-proxy',
'\\.(jpg|ico|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)(\\?.+)?$': 'identity-obj-proxy',
'^api(.*)$': '<rootDir>/src/api$1',
'^assets(.*)$': '<rootDir>/src/assets$1',
'^components(.*)$': '<rootDir>/src/components$1',
'^constants/(.*)$': '<rootDir>/src/constants/$1',
'^images(.*)$': '<rootDir>/src/assets/images$1',
'^hocs(.*)$': '<rootDir>/src/hocs$1',
'^hooks(.*)$': '<rootDir>/src/hooks$1',
'^pages(.*)$': '<rootDir>/src/pages$1',
'^src(.*)$': '<rootDir>/src$1',
'^style(.*)$': '<rootDir>/src/style$1',
'^store(.*)$': '<rootDir>/src/store$1',
'^types(.*)$': '<rootDir>/src/types$1',
'^utils(.*)$': '<rootDir>/src/utils$1',
},
};
export default config;