-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathjest.config.js
69 lines (68 loc) · 2.76 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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
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"),
"^(@bigbinary/neeto-icons|neetoicons)$": path.resolve(
__dirname,
"node_modules/@bigbinary/neeto-icons/dist/cjs/icons/index.js"
),
"^(@bigbinary/neeto-icons|neetoicons)/logos$": path.resolve(
__dirname,
"node_modules/@bigbinary/neeto-icons/dist/cjs/logos/index.js"
),
"^(@bigbinary/neeto-icons|neetoicons)/app-icons$": path.resolve(
__dirname,
"node_modules/@bigbinary/neeto-icons/dist/cjs/app-icons/index.js"
),
"^(@bigbinary/neeto-icons|neetoicons)/typeface-logos$": path.resolve(
__dirname,
"node_modules/@bigbinary/neeto-icons/dist/cjs/typeface-logos/index.js"
),
"^(@bigbinary/neeto-icons|neetoicons)/misc$": path.resolve(
__dirname,
"node_modules/@bigbinary/neeto-icons/dist/cjs/misc/index.js"
),
"^(@bigbinary/neeto-icons|neetoicons)/logos/(.*)$": path.resolve(
__dirname,
"node_modules/@bigbinary/neeto-icons/dist/cjs/logos/$2.js"
),
"^(@bigbinary/neeto-icons|neetoicons)/app-icons/(.*)$": path.resolve(
__dirname,
"node_modules/@bigbinary/neeto-icons/dist/cjs/app-icons/$2.js"
),
"^(@bigbinary/neeto-icons|neetoicons)/typeface-logos/(.*)$": path.resolve(
__dirname,
"node_modules/@bigbinary/neeto-icons/dist/cjs/typeface-logos/$2.js"
),
"^(@bigbinary/neeto-icons|neetoicons)/misc/(.*)$": path.resolve(
__dirname,
"node_modules/@bigbinary/neeto-icons/dist/cjs/misc/$2.js"
),
"^(@bigbinary/neeto-icons|neetoicons)/(.*)$": path.resolve(
__dirname,
"node_modules/@bigbinary/neeto-icons/dist/cjs/icons/$2.js"
),
neetocist: path.resolve(
__dirname,
"node_modules/@bigbinary/neeto-cist/index.cjs.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))",
],
testEnvironment: "jsdom",
setupFilesAfterEnv: ["./jest-setup.js"],
collectCoverageFrom: ["src/**/*.js"],
});