Disposable fixture for ProPR release qualification
src/releaseCheck.js exports summarizeChecks(checks), a deterministic helper for
summarizing an array of release-qualification checks.
const { summarizeChecks } = require('./src/releaseCheck');
const summary = summarizeChecks([
{ name: 'lint', passed: true },
{ name: 'build', passed: true },
{ name: 'unit-tests', passed: false },
]);
// summary => { total: 3, passed: 2, failed: 1, failedNames: ['unit-tests'] }Each entry in checks must be an object with a non-empty string name and a
boolean passed. summarizeChecks throws a TypeError if:
checksis not an array- any entry is not a valid
{ name, passed }object - any two entries share the same
name
The returned failedNames array preserves the input order.
This project requires Node.js 22+ and has no runtime dependencies. Tests use the
built-in node:test runner:
npm test