A Jest config for TypeScript. The setup script provides a one-liner to get Jest set up in your project.
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
.
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.
Install the package
npm i -D @eliasnorrby/jest-config
and add the configuration to jest.config.js
.
module.exports = require('@eliasnorrby/jest-config')
module.exports = {
...require('@eliasnorrby/jest-config'),
// Add options here
roots: ['.'],
}