-
Notifications
You must be signed in to change notification settings - Fork 30
/
Copy pathjest.web.config.js
30 lines (28 loc) · 1.18 KB
/
jest.web.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
28
29
30
/* eslint-env node */
// For a detailed explanation regarding each configuration property, visit:
// https://jestjs.io/docs/en/configuration.html
/** @type {import('jest').Config} */
module.exports = {
displayName: "Atlantis Web",
rootDir: ".",
// A map from regular expressions to module names that allow to stub out resources with a single module
moduleNameMapper: {
"\\.css$": "identity-obj-proxy",
"react-markdown":
"<rootDir>/node_modules/react-markdown/react-markdown.min.js",
"^@jobber/hooks/(.*)$": "<rootDir>/packages/hooks/dist/$1",
"^@jobber/components/(.*)$": "<rootDir>/packages/components/src/$1",
},
// Automatically clear mock calls and instances between every test
clearMocks: true,
setupFilesAfterEnv: ["./jestWebSetupConfig.js"],
// The test environment that will be used for testing
testEnvironment: "jest-environment-jsdom",
// An array of regexp pattern strings that are matched against all test paths, matched tests are skipped
testPathIgnorePatterns: [
"/node_modules/",
"/packages/generators/templates/",
"/packages/components-native/",
],
transformIgnorePatterns: ["node_modules/(?!@codesandbox/sandpack-react)/"],
};