-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathjest.config.ts
33 lines (32 loc) · 1.01 KB
/
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
27
28
29
30
31
32
33
/* eslint-disable */
import type { Config } from 'jest'
export default async (): Promise<Config> => {
return {
verbose: true,
testEnvironment: 'jsdom',
setupFiles: ['<rootDir>/src/tests/beforeSetupTests.tsx'],
setupFilesAfterEnv: ['<rootDir>/src/tests/afterSetupTest.ts'],
transform: {
'\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$':
'<rootDir>/src/tests/config/fileTransformer.cjs',
'^.+\\.(t|j)sx?$': [
'@swc/jest',
{
jsc: {
transform: {
react: {
runtime: 'automatic'
}
}
}
}
]
},
moduleNameMapper: {
'\\.(css|less)$': 'identity-obj-proxy'
},
transformIgnorePatterns: [
'node_modules/(?!(multiformats|uint8arrays|@dcl/single-sign-on-client|decentraland-connect|uuid|decentraland-dapps|decentraland-ui2|@transak|query-string|decode-uri-component|split-on-first|filter-obj|@mui|@babel|@emotion)/)'
]
}
}