es-jest is a preprocessor for Jest that uses esbuild to transform ESM, React JSX, and TypeScript files. Version 2.1.0 (latest, last released in 2021) is stable but in maintenance mode. It offers faster transformation than babel-jest or ts-jest by leveraging esbuild, and supports custom esbuild configurations. It can be used as a Jest preset or via a transform entry. Note that major Jest version updates may break compatibility; v2 requires Jest 26+.
npm install es-jestNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates minimal setup via preset and a simple test using ES modules.
Consider using jest-light-runner or @jest/transform-esbuild for ongoing support.
Use double backslashes in JSON: '\\.(js|ts)x?$'
Use ts-jest or run tsc separately for type safety.
Ensure esbuild version meets requirements and pass options correctly.
Run 'npm install es-jest --save-dev'.
Use module.exports in a .js config file, or ensure preset path is correct.
Configure transform or preset in jest config. Add 'transform': { '\\.js$': 'es-jest' }Add appropriate moduleNameMapper or transformIgnorePatterns.