-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathjest.config.js
More file actions
25 lines (25 loc) · 750 Bytes
/
Copy pathjest.config.js
File metadata and controls
25 lines (25 loc) · 750 Bytes
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
module.exports = {
verbose: true,
// testEnvironment: 'jsdom',
errorOnDeprecated: true,
moduleNameMapper: {
"^react-native$": "react-native-web",
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$":
"identity-obj-proxy",
},
preset: "ts-jest",
collectCoverageFrom: ["src/**/*.{js,jsx,ts,tsx}"],
coveragePathIgnorePatterns: [
"/.*.stories.[jt]sx?$",
"/.*.test.[jt]sx?$",
"/node_modules",
],
setupFiles: ["react-app-polyfill/jsdom"],
setupFilesAfterEnv: [],
testMatch: [
"<rootDir>/src/**/__tests__/**/*.{js,jsx,ts,tsx}",
"<rootDir>/src/**/*.{spec,test}.{js,jsx,ts,tsx}",
],
snapshotSerializers: ["enzyme-to-json/serializer"],
testEnvironment: "node",
};