A modern Jest preset for tooling development.
npm install jest-preset-moon!build status
!npm version
!npm license
A modern Jest preset that provides code coverage and performance out of the box.
``bash`
yarn add --dev jest-preset-moon
Add the preset to your root jest.config.js.
`js`
module.exports = {
preset: 'jest-preset-moon',
};
- Configured for Node.js environments by default.
- Defines an empty file mock for non-JS/TS files (like CSS).
- Requires 90% code coverage of all source files.
- Improved performance through the Jest Circus runner.
- Supports __DEV__, __PROD__, and __TEST__ globals.
- Source files must be located in a src folder..test.
- Tests files must end in and be located within a tests or __tests__ folder.
- Includes a setup file at (if exists).babel-jest` package.
- Relies on Babel, the TypeScript plugin, and the default