3.1.0 • Published 3 months ago
jest-preset-moon v3.1.0
jest-preset-moon
A modern Jest preset that provides code coverage and performance out of the box.
yarn add --dev jest-preset-moon
Setup
Add the preset to your root jest.config.js
.
module.exports = {
preset: 'jest-preset-moon',
};
Features
- 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.
Requirements
- Source files must be located in a
src
folder. - Tests files must end in
*.test.*
and be located within atests
or__tests__
folder. - Includes a setup file at
<rootDir>/tests/setup.ts
(if exists). - Relies on Babel, the TypeScript plugin, and the default
babel-jest
package.
3.1.0
3 months ago
3.0.2
1 year ago
3.0.1
1 year ago
3.0.0
1 year ago
2.0.8
1 year ago
2.0.7
1 year ago
2.0.6
2 years ago
2.0.5
2 years ago
2.0.4
2 years ago
2.0.3
2 years ago
2.0.2
2 years ago
1.1.4
2 years ago
2.0.1
2 years ago
2.0.0
2 years ago
1.1.1
3 years ago
1.1.0
3 years ago
1.1.3
3 years ago
1.1.2
3 years ago
1.0.2
3 years ago
1.0.1
3 years ago
1.0.0
3 years ago
0.1.0
3 years ago
0.0.2
3 years ago
0.0.1
3 years ago