@medly/jest-config-react

1.0.2 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i @medly/jest-config-react

Weekly Downloads

92

Version

1.0.2

License

MIT

Unpacked Size

8.4 kB

Total Files

7

Last publish

Collaborators

  • kdabir
  • gmukul01