1.2.5 • Published 6 years ago

@deuterium/jest-config v1.2.5

Weekly downloads
1
License
MIT
Repository
-
Last release
6 years ago

jest-config

jest-config is a simple config file to set up jest for testing in your package.

Installation

In order to properly work, jest-config requires jest to be installed.

yarn add --dev jest @deuterium/jest-config

If using babel, specifically babel 7 we need to install a few more dependencies

yarn add --dev babel-jest babel-core@^7.0.0-bridge.0 @babel/core

Usage

Create file jest.config.js and add

const jestConfig = require('@deuterium/jest-config');

module.exports = {
...jestConfig('mainDir', ['ignoredir1', 'ignoredir2', ...]?),
}