@eliasnorrby/jest-config
v2.0.22
Published
Jest config for TypeScript
Downloads
54
Maintainers
Readme
Jest Config
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: ['.'],
}