forked from NoCymer/nexxt-tabs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjest.config.ts
26 lines (25 loc) · 864 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/types";
const config: Config.InitialOptions = {
verbose: true,
moduleDirectories: ["node_modules", "src"],
transform: {
"^.+\\.(ts|tsx|js|jsx)$": "ts-jest",
'^.+\\.svg$': '<rootDir>/tests/__mocks__/svg.js',
},
setupFiles: [
"mock-local-storage",
"fake-indexeddb/auto"
],
testEnvironment: "jsdom",
moduleNameMapper: {
"^@Modules/(.*)": "<rootDir>/src/modules/$1",
"^@Components/(.*)": "<rootDir>/src/components/$1",
"^@Styles/(.*)": "<rootDir>/src/styles/$1",
"^@Settings/(.*)": "<rootDir>/src/settings/$1",
"^@Public/(.*)": "<rootDir>/public/$1",
"^@Hooks/(.*)": "<rootDir>/src/hooks/$1",
"\\.(css|scss|less)$": "identity-obj-proxy",
"^dexie$": require.resolve('dexie'),
}
};
export default config;