A CLI tool that bundles Jest test projects using esbuild for faster test execution. Current stable version is 4.0.4 (March 2025), with irregular releases. It supports Jest 27-29 and Node.js 14+. Differentiating features: automatic Jest config generation, esbuild plugin support, and optional dependency transformation. It can handle ESM and CJS, and includes metafile generation to produce jest.config.json. The tool is maintained by Wix Incubator and is suitable for projects seeking lightweight, efficient test bundling.
npm install esbuild-jest-cliNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to configure and run esbuild-jest-cli using a config file or programmatic API.
Migrate to new transformer mechanism; remove any usage of preTransform/postTransform. See changelog for v3->v4 migration.
Update custom transformers to match the new API. See release notes.
Do not set bundle, splitting, metafile, or outbase in esbuild config — they are internally overridden.
Upgrade Node.js to >=16.x.
Use dynamic import() or ensure your project is configured for ESM.
Run 'npm install --save-dev esbuild-jest-cli esbuild' and ensure node_modules is correct.
Change to dynamic import: const { build } = await import('esbuild-jest-cli'); or set type: module in package.json.Ensure Jest config uses esbuild-jest-cli's transformer or run via CLI with correct testPathPattern.
Install esbuild globally or set ESBUILD_BINARY_PATH to the esbuild binary location.