All packages/@batoanng/jest-config
Config

@batoanng/jest-config

Preset Jest setups for Next.js, NestJS, Node, and esbuild-driven TypeScript projects.

Version 1.4.11 min read

Quick install

npm install -D @batoanng/jest-config

Adopt the Next.js preset

Most packages can point Jest directly at the preset and layer in extra settings only when needed.

Context

What It Covers

Adopt a ready-made Jest configuration with the right environment, transforms, and setup files already wired.

  • Multiple Jest presets:
  • Custom global setups via jest.setup.js and esbuild jest.setup.js
  • JSDOM, environment, and transform preconfigured
  • Designed for monorepo or standalone repo usage

✨ Features

  • Multiple Jest presets:
    • common: base config for any TypeScript repo
    • next: optimized for Next.js
    • nest: tailored for NestJS
    • esbuild: fast builds with esbuild support
  • Custom global setups via jest.setup.js and esbuild-jest.setup.js
  • JSDOM, environment, and transform preconfigured
  • Designed for monorepo or standalone repo usage

Setup

Installation

Bring the package into your project with the published npm entrypoint.

npm install -D @batoanng/jest-config

📦 Installation

npm install -D jest @batoanng/jest-config

You may also need to install peer dependencies:

npm install -D ts-jest jest-environment-jsdom @testing-library/react @types/jest

For esbuild support:

npm install -D esbuild jest-esbuild

Start

Adopt the Next.js preset

Most packages can point Jest directly at the preset and layer in extra settings only when needed.

module.exports = require('@batoanng/jest-config/next');

Surface

Exports And Entrypoints

Key files

  • common.js
  • esbuild-jest.setup.js
  • esbuild.js
  • jest.setup.js
  • nest.js
  • next.js
  • package.json

Ops

Development Notes

Latest release snapshot

1.4.1

Patch Changes

  • Minimize package size

Source docs

Reference

The full README is rendered below so the package guide stays detailed and traceable to the source docs that live with the package itself.

npm version install size

A collection of pre-configured Jest setups for modern TypeScript projects across different frameworks like Next.js, NestJS, and Node with support for esbuild, JSDOM, and custom test environments.


✨ Features

  • Multiple Jest presets:
    • common: base config for any TypeScript repo
    • next: optimized for Next.js
    • nest: tailored for NestJS
    • esbuild: fast builds with esbuild support
  • Custom global setups via jest.setup.js and esbuild-jest.setup.js
  • JSDOM, environment, and transform preconfigured
  • Designed for monorepo or standalone repo usage

📦 Installation

npm install -D jest @batoanng/jest-config

You may also need to install peer dependencies:

npm install -D ts-jest jest-environment-jsdom @testing-library/react @types/jest

For esbuild support:

npm install -D esbuild jest-esbuild