3.2.2 • Published 5 months ago
@bluecateng/jest-helpers v3.2.2
@bluecateng/jest-helpers
Helper scripts for Jest.
Installation
npm i -D @bluecateng/jest-helpers
Usage
In package.json
add:
{
"jest": {
"moduleNameMapper": {
"^react$": "@bluecateng/jest-helpers/mock-react",
"^react-dom$": "@bluecateng/jest-helpers/mock-react",
"^react/jsx-runtime$": "@bluecateng/jest-helpers/mock-react",
"\\.(png|jpg|gif|svg)$": "@bluecateng/jest-helpers/file-mapper",
"\\.(css|less)$": "@bluecateng/jest-helpers/style-mapper"
},
"setupFilesAfterEnv": ["@bluecateng/jest-helpers/setup-enzyme"],
"testEnvironment": "node"
}
}