Internal Babel helper for running plugin tests. Version 6.24.1 is an older release from Babel 6 era. This package is part of Babel's monorepo and is not intended for direct external use. It provides a test runner helper for Babel plugins. The current stable major version is 7.x (e.g., 7.29.2) with Babel 8 (8.0.0-rc.3) in release candidate. Key differentiator: purely internal to Babel, not designed for public consumption, may have breaking changes across major versions. Use @babel/helper-plugin-test-runner for Babel 7+.
npm install babel-helper-plugin-test-runnerVerified import paths — ran on the pinned version, not inferred.
Example of using babel-helper-plugin-test-runner to test a Babel plugin with a code fixture.
Update to @babel/helper-plugin-test-runner for Babel 7+
Consider using @babel/core's built-in test utilities or a dedicated test framework like Jest with babel-jest.
Use import statement or upgrade to Babel 7+ with @babel/helper-plugin-test-runner
Refer to version-specific docs on GitHub
npm install --save-dev @babel/helper-plugin-test-runner or install the older babel-helper-plugin-test-runner for Babel 6
Use import pluginTester from 'babel-helper-plugin-test-runner'
Switch to @babel/helper-plugin-test-runner