0.3.3 • Published 3 years ago
@tractorzoom/jest-config v0.3.3
@tractorzoom/jest-config
Extendable jest configuration
Add badge to your repo's readme
[![jest](https://jestjs.io/img/jest-badge.svg)](https://github.com/facebook/jest)
How do I use? :thinking:
Installation
npm i --save-dev @tractorzoom/jest-config
Usage
Extend configuration in jest.config.js
module.exports = require('@tractorzoom/jest-config').jestConfig;
Add Babel Config File babel.config.js
module.exports = require('@tractorzoom/jest-config').babelConfig;
Scripts
Add scripts to package.json
to utilize jest.
{
"scripts": {
"test": "jest",
"test:contract": "jest --testPathPattern=__tests__/contract/",
"test:unit": "jest --testPathPattern=__tests__/unit/"
}
}