Skip to content

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

propr-e2e

Disposable fixture for ProPR release qualification

Release check summary utility

src/releaseCheck.js exports summarizeChecks(checks), a deterministic helper for summarizing an array of release-qualification checks.

Usage

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:

  • checks is 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.

Running tests

This project requires Node.js 22+ and has no runtime dependencies. Tests use the built-in node:test runner:

npm test

About

Disposable fixture for ProPR release qualification

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages