-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.config.js
27 lines (26 loc) · 1.02 KB
/
jest.config.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
const jestConfig = {
setupFilesAfterEnv: ["./jest.setup.js"],
moduleNameMapper: {
"^@components(.*)$": "<rootDir>/components$1",
"^@layouts(.*)$": "<rootDir>/layouts$1",
"^@pages(.*)$": "<rootDir>/pages$1",
"^@hooks(.*)$": "<rootDir>/client/hooks$1",
"^@server(.*)$": "<rootDir>/server$1",
"^@models(.*)$": "<rootDir>/server/db/models$1",
"^@pages(.*)$": "<rootDir>/pages$1",
"^@models$": "<rootDir>/server/db/models/index.ts",
"^@layouts$": "<rootDir>/layouts/index.ts",
"^@schema$": "<rootDir>/server/graphql/schema/index.ts",
"^@test/utils$": "<rootDir>/tests/test-utils.tsx",
"^@gql/server(.*)$": "<rootDir>/server/graphql$1",
"^@gql/client$": "<rootDir>/client/graphql/apollo-client/index.ts",
"^@gql/queries$": "<rootDir>/client/graphql/queries/index.ts",
},
testEnvironment: "jsdom",
transformIgnorePatterns: [
"[/\\\\]node_modules[/\\\\].+\\.(js|jsx|mjs|cjs|ts|tsx)$",
"^.+\\.module\\.(css|sass|scss)$",
],
resetMocks: true,
};
module.exports = jestConfig;