@lcdev/jest
v0.4.1
Published
Jest config for Launchcode
Downloads
1,158
Keywords
Readme
Jest
Common jest configuration items for packages and services.
yarn add @lcdev/jest@VERSION
Add to your package.json
:
"jest": {
"preset": "@lcdev/jest"
}
This package enables support for typescript and other common config items. You may need more than just the preset for more complex environments.
For example, you may want moduleNameMapper
for @/components/Button
style imports:
"jest": {
"preset": "@lcdev/jest",
"moduleNameMapper": {
"^@/(.*)$": "<rootDir>/src/$1"
}
}
We don't support enzyme or similar environments out of the box, but there are some example projects. Further documentation is needed.