cleaner-spec-reporter is a test reporter for Node.js's native test runner, providing a more refined and visually clean output compared to the default 'spec' reporter. It is designed to integrate seamlessly with the `node --test` command-line interface. The package is currently stable at version 1.0.3, with recent releases focusing on type import sanitization and minor fixes. A significant breaking change occurred in version 1.0.0, which dropped support for Node.js 20, now requiring Node.js 22.21.0 or higher. This library is ESM-only for direct programmatic imports. Its primary differentiator is its focus on enhancing the readability of test results in the terminal through improved formatting and coloring, aiming to streamline the developer experience during testing and CI workflows.
npm install cleaner-spec-reporterVerified import paths — ran on the pinned version, not inferred.
Demonstrates setting up cleaner-spec-reporter as the default test reporter in your `package.json` for Node.js's native test runner.
Upgrade your Node.js runtime to version 22.21.0 or newer. Consider using a Node.js version manager like `nvm` or `volta` to manage multiple Node.js versions.
Ensure your project is configured for ESM (e.g., `"type": "module"` in `package.json`) if you plan to import it programmatically. For CLI usage, simply ensure Node.js is configured to run your tests in an ESM context if your test files are ESM.
Convert your consuming module to ES Module format (e.g., add `"type": "module"` to `package.json` and use `import`) or ensure you are only using the package via the Node.js CLI `--test-reporter` flag in an ESM-compatible test setup.
Verify your Node.js version is 22.21.0 or newer. Reinstall the package (`npm install cleaner-spec-reporter`) to ensure integrity. Check your project's `package.json` for `"type": "module"` if your test files are ESM.
No dependency data recorded yet.