Jest config for Launchcode
npm install @lcdev/jestCommon jest configuration items for packages and services.
``bash`
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": {
"^@/(.*)$": "
}
}
We don't support enzyme or similar environments out of the box, but there are
some example projects. Further documentation is needed.