@batoanng/jest-config
Preset Jest setups for Next.js, NestJS, Node, and esbuild-driven TypeScript projects.
Quick install
npm install -D @batoanng/jest-configAdopt 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 reponext: optimized for Next.jsnest: tailored for NestJSesbuild: fast builds with esbuild support
- Custom global setups via
jest.setup.jsandesbuild-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.jsesbuild-jest.setup.jsesbuild.jsjest.setup.jsnest.jsnext.jspackage.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.
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 reponext: optimized for Next.jsnest: tailored for NestJSesbuild: fast builds with esbuild support
- Custom global setups via
jest.setup.jsandesbuild-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