ember-cli-test-loader is an essential Ember CLI addon designed to manage and load test modules within an Ember application. It reviews modules in `requirejs.entries` to identify and load test files, providing a customizable `shouldLoadModule` method for defining test module criteria. The current stable version is 3.1.0, which includes ambient types for improved TypeScript support. This package is fundamental for running tests in Ember CLI projects, working closely with the build system to ensure only relevant test files are loaded during the testing phase. Its release cadence typically aligns with Ember CLI updates, focusing on compatibility and necessary maintenance, rather than frequent new features. It differentiates itself by being the standard, integrated solution for test loading within the Ember ecosystem, avoiding the need for manual test file management.
npm install ember-cli-test-loaderVerified import paths — ran on the pinned version, not inferred.
Demonstrates importing TestLoader and optionally overriding its 'shouldLoadModule' method before initiating the test loading process in an Ember CLI project.
Upgrade Node.js to version 10 or greater. The package officially supports Node.js 10.* || >= 12.
Update `ember-cli-babel` in your project's `package.json` to a compatible version (e.g., `^7.1.3` or later) and reinstall dependencies.
Ensure this package is used within a standard Ember CLI project setup where the `requirejs` global is correctly initialized by the build system.
Ensure `ember-cli-test-loader` is only used within an Ember CLI application or addon's testing setup, typically in `tests/test-helper.js`.
Upgrade Node.js to version 10 or higher. The `engines.node` field specifies `10.* || >= 12`.
Add `import TestLoader from 'ember-cli-test-loader/test-support';` to the top of your test helper file.