@medly/jest-config-react
v1.0.2
Published
Basic jest config for react apps
Downloads
97
Readme
Jest Config for React Apps
What is Jest?
Jest is a delightful JavaScript Testing Framework with a focus on simplicity. It works with projects using: Babel, TypeScript, Node, React, Angular, Vue and more.
About
Recommended Jest rules to provide more configuration power to your react based web applications.
Shared Jest config
Install
yarn add -D @medly/jest-config-react
Usage
1. Use default config
Add below code in your package.json
{
"script": {
"dist": "jest --config=node_modules/@medly/jest-config-react/jest.config.js"
}
}
2. Overwrite default settings
Add below code in your jest.config.js
const baseConfig = require('@medly/jest-config-react');
module.exports = {
...baseConfig,
rootDir: './'
};
Default config
To view the default config click here