Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@medly/jest-config-react

gmukul0145MIT1.0.2

Basic jest config for react apps

Medly, jest, config

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