Ninja Pumpkin Mutants

    jest-preset-moon
    TypeScript icon, indicating that this package has built-in type declarations

    1.0.2 • Public • Published

    jest-preset-moon

    build status npm version npm license

    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 a tests 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.

    Install

    npm i jest-preset-moon

    DownloadsWeekly Downloads

    294

    Version

    1.0.2

    License

    MIT

    Unpacked Size

    9.7 kB

    Total Files

    12

    Last publish

    Collaborators

    • milesj