@eliasnorrby/jest-config

2.0.22 • Public • Published

Jest Config

Travis npm

Dependabot Status semantic-release

A Jest config for TypeScript. The setup script provides a one-liner to get Jest set up in your project.

Setup

Using npx

Run the following command to install and configure jest

npx @eliasnorrby/jest-config

This will run a setup script, adding this package to devDependencies and writing the config to jest.config.js.

--no-install

Run setup with the --no-install flag to avoid installing this package as a dependency. Your jest.config.js will contain a basic configuration for you to add to instead of extending this package.

Manually

Install the package

npm i -D @eliasnorrby/jest-config

and add the configuration to jest.config.js.

jest.config.js

module.exports = require('@eliasnorrby/jest-config')

Overriding settings

module.exports = {
  ...require('@eliasnorrby/jest-config'),
  // Add options here
  roots: ['.'],
}

Package Sidebar

Install

npm i @eliasnorrby/jest-config

Weekly Downloads

1

Version

2.0.22

License

MIT

Unpacked Size

16.2 kB

Total Files

6

Last publish

Collaborators

  • eliasnorrby