@reporters/github
Version:
A github actions reporter for `node:test`
68 lines (60 loc) • 1.94 kB
JavaScript
// `test:log` is execution-ordered: Node forwards it the moment `t.log()` runs,
// bypassing the per-file declaration-order buffer that `test:diagnostic` waits
// in. Reporters that group their output by test must therefore hold each log
// until its owner reports, or it lands under whichever test happens to be
// printing at the time.
// `entryFile` (nodejs/node#64309) disambiguates the isolated processes that
// share a declaration file; until it lands, `(file, testId)` can collide across
// concurrent processes running tests declared in a shared helper.
const keyOf = (data) => `${data.entryFile ?? data.file}