forked from acrool/acrool-react-carousel
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjest.config.cjs
More file actions
27 lines (26 loc) · 713 Bytes
/
jest.config.cjs
File metadata and controls
27 lines (26 loc) · 713 Bytes
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
module.exports = {
coverageDirectory: 'coverage',
preset: 'ts-jest',
testEnvironment: 'jsdom',
testMatch: ['<rootDir>/**/*.spec.ts?(x)'],
transform: {
'^.+\\.(t|j)sx?$': [
'@swc/jest',
{
jsc: {
transform: {
react: {
runtime: 'automatic',
},
},
},
},
],
},
moduleNameMapper: {
'^@/(.*)$': '<rootDir>/src/$1',
"\\.(css)$": "identity-obj-proxy",
},
// moduleDirectories: ['node_modules', '<!----><rootDir>/src'],
// setupFilesAfterEnv: ['./jest.setup.js']
};