README
@sitearcade/jest-preset
Our browserslist config.
Installation
npm i -D @sitearcade/jest-preset
- Add to
package.json
:
{
"jest": {
"preset": "@sitearcade/jest-preset"
}
}
- Common helper libraries are included by default:
{
setupFilesAfterEnv: compact([
'<rootDir>/tools/jest/libs/testSetup.js',
'jest-date-mock',
'jest-extended',
'@testing-library/jest-dom/extend-expect',
packageUses('styled-components') && 'jest-styled-components',
]),
}
- Supports
@storybook/addon-doc
. Just install it in your project, and it'll do the right thing.