Skip to content

Instantly share code, notes, and snippets.

@CodeNinja47
Created January 19, 2023 09:51
Show Gist options
  • Save CodeNinja47/62ba85b3154dbde2ce95afbef271cfbe to your computer and use it in GitHub Desktop.
Save CodeNinja47/62ba85b3154dbde2ce95afbef271cfbe to your computer and use it in GitHub Desktop.
export default {
clearMocks: true,
collectCoverage: true,
coverageDirectory: "coverage",
moduleNameMapper: {
"\\.(jpg|ico|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$":
"identity-obj-proxy",
"\\.(css|less|scss|sass)$": "identity-obj-proxy"
},
setupFilesAfterEnv: ["./jest.setup.ts"],
testEnvironment: "jest-environment-jsdom",
testMatch: ["**/*.spec.(ts|tsx)"],
transform: {
"^.+\\.tsx?$": "ts-jest"
},
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment