-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathjest.config.js
More file actions
46 lines (45 loc) · 1.77 KB
/
jest.config.js
File metadata and controls
46 lines (45 loc) · 1.77 KB
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
34
35
36
37
38
39
40
41
42
43
44
45
46
const path = require("path");
module.exports = () => ({
verbose: true,
moduleDirectories: ["node_modules", "src"],
moduleNameMapper: {
"^.+\\.(css|less|scss)$": "identity-obj-proxy",
"^@bigbinary/neetoui/(.*)$": path.resolve(__dirname, "src", "$1"),
"neetoicons/logos": path.resolve(
__dirname,
"node_modules/@bigbinary/neeto-icons/dist/neeto-logos.js"
),
"neetoicons/app-icons": path.resolve(
__dirname,
"node_modules/@bigbinary/neeto-icons/dist/app-icons.js"
),
neetoicons: path.resolve(
__dirname,
"node_modules/@bigbinary/neeto-icons/dist/neeto-icons.js"
),
"^(@bigbinary/neeto-cist|neetocist)$": path.resolve(
__dirname,
"node_modules/@bigbinary/neeto-cist/index.mjs"
),
"^(@bigbinary/neeto-cist|neetocist)/(.*)$": path.resolve(
__dirname,
"node_modules/@bigbinary/neeto-cist/$2.js"
),
"^atoms/(.*)$": path.resolve(__dirname, "src/atoms", "$1"),
"^components/(.*)$": path.resolve(__dirname, "src/components", "$1"),
"^formikcomponents/(.*)$": path.resolve(__dirname, "src/formik", "$1"),
"^layouts/(.*)$": path.resolve(__dirname, "src/layouts", "$1"),
"^constants/(.*)$": path.resolve(__dirname, "src/constants", "$1"),
"^hooks/(.*)$": path.resolve(__dirname, "src/hooks", "$1"),
"^managers/(.*)$": path.resolve(__dirname, "src/hooks", "$1"),
"^utils/(.*)$": path.resolve(__dirname, "src/utils", "$1"),
"^src/(.*)$": path.resolve(__dirname, "src", "$1"),
},
transformIgnorePatterns: [
"/node_modules/(?!(@babel|@bigbinary/neeto-icons|rc-picker|rc-util|@bigbinary/neeto-cist))",
],
transform: { "^.+\\.m?jsx?$": "babel-jest" },
testEnvironment: "jsdom",
setupFilesAfterEnv: ["./jest-setup.js"],
collectCoverageFrom: ["src/**/*.js"],
});