report
raw JSON → 0.1.1 verified Sat Apr 25 auth: no javascript abandoned
A Node.js CLI tool for reporting test results to npm's test result listings. Version 0.1.1 is the current and only stable release. It was designed to integrate with npm's test result endpoints to publish test outcomes for packages. No longer actively maintained; superseded by modern CI and reporting tools like tap, mocha, and jest. Key differentiator was its early attempt to unify test reporting within npm ecosystem, but it never gained adoption.
Common errors
error report is not a function ↓
cause Importing named export 'report' instead of default.
fix
const report = require('report'); (CommonJS) or import report from 'report' (ESM).
error Cannot find module 'report' ↓
cause Package requires Node ~0.6.18; incompatible with modern npm install.
fix
Install with npm --engine-strict=false or use a virtual environment with Node 0.6.
error Error: getaddrinfo ENOTFOUND ↓
cause npm test result API endpoint no longer exists.
fix
Do not use this package; it is abandoned.
Warnings
gotcha Package requires Node ~0.6.18; will not install or work on modern Node versions. ↓
fix Use a modern test reporting tool like tap, mocha, or jest.
deprecated npm test result listings feature is no longer supported; this package is effectively broken. ↓
fix Use alternative test reporting services (e.g., Travis CI, GitHub Actions).
gotcha The main export is not a function; may cause 'report is not a function' error if imported incorrectly. ↓
fix Use default import or require default: const report = require('report').default || require('report');
Install
npm install report yarn add report pnpm add report Imports
- report wrong
const report = require('report')correctimport report from 'report' - default wrong
import { report } from 'report'correctconst report = require('report') - main wrong
const main = require('report').maincorrectimport { main } from 'report'
Quickstart
#!/usr/bin/env node
const report = require('report');
const testResults = { passed: 10, failed: 2 };
report(testResults, function(err) {
if (err) console.error('Failed to report:', err);
else console.log('Test results reported');
});