This package provides utilities designed to streamline the testing process for Broccoli plugins. It offers a structured approach to setting up test environments, executing plugins against predefined fixtures, and asserting their outputs. As of its latest and only stable release, version 0.0.9, the library uses a CommonJS module system. The package has not received any updates or maintenance since late 2017, indicating it is no longer actively developed or supported. Its core functionality revolves around `makeTestHelper` for orchestrating plugin runs and `cleanupBuilders` for managing test artifacts, making it a highly specialized tool for its specific use case within the older Broccoli ecosystem. Due to its early development status and prolonged abandonment, it likely lacks compatibility with modern Node.js versions, contemporary Broccoli APIs, or current JavaScript module standards (ESM).
npm install broccoli-test-helpersVerified import paths — ran on the pinned version, not inferred.
Demonstrates basic usage of `broccoli-test-helpers` to set up a test for a Broccoli plugin, run it against fixture files, and assert the output files and their contents using `chai`.
Consider migrating to a more modern testing solution for Broccoli plugins, or use an older Node.js version (e.g., Node.js 8 or 10) if you must rely on this package.
Ensure your project uses CommonJS modules (`.js` files with `require`) or configure your build tools (e.g., Webpack, Rollup, Babel) to transpile the module for ESM compatibility.
Verify compatibility with your specific Broccoli version. If issues arise, manual adaptation or an alternative testing approach may be necessary.
Perform a thorough security audit of the package's dependency tree if usage is unavoidable. Prioritize migrating to actively maintained alternatives to minimize security risks.
Convert your consuming module to CommonJS (`.js` file and `require` syntax), or use a build tool like Webpack/Rollup with Babel to handle interop. If in Node.js, ensure your package.json doesn't specify `"type": "module"` for the directory containing the test.
Double-check the `require('broccoli-test-helpers')` statement for typos. Ensure the package is correctly installed (`npm install broccoli-test-helpers --save-dev`). This might also occur if an ESM `import` failed silently.This package is likely incompatible with your current Broccoli version. You may need to downgrade your Broccoli version or update your testing strategy to use a different tool or direct Broccoli APIs.
No dependency data recorded yet.