Jest runner for Rollup, designed to integrate Rollup bundling into Jest test runs. Currently at version 1.3.9 (last released in 2020), it works with Rollup ^1.29.1 and Node >=10.13. It plays well in monorepo scenarios, using Jest's runner API to bundle test files with Rollup before execution. Key differentiators: seamless monorepo support, simple configuration, and leverages Rollup's tree-shaking for faster test runs. However, it is no longer actively maintained and may not work with modern Rollup versions (v2+).
npm install jest-runner-rollupNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Configures Jest to use jest-runner-rollup as the default test runner, enabling Rollup bundling for each test file.
Consider alternatives like @rollup/jest-transform or rollup-jest.
Pin Rollup to version ^1.29.1 or use a different Jest runner that supports Rollup v2+.
Set `runner: 'jest-runner-rollup'` in Jest config (string) rather than trying to import and instantiate.
Install rollup@^1.29.1: npm install rollup@1.29.1 --save-dev
Set `runner: 'jest-runner-rollup'` in Jest config instead of using `runner: require('jest-runner-rollup')`.Use a string like 'jest-runner-rollup' or a valid runner class/function.