Skip to content

CI: Test failure reporting fails #625

Open
@rotu

Description

In CI, tests are failing, and the test reporter is crashing with "TypeError: test.titlePath is not a function"

e.g.: https://github.com/zeromq/zeromq.js/actions/runs/9551631841/job/26326410030#step:14:1026

/Users/runner/work/zeromq.js/zeromq.js/node_modules/.pnpm/[email protected]/node_modules/mocha/lib/reporters/base.js:286
  failures.forEach(function (test, i) {
           ^
TypeError: test.titlePath is not a function
    at /Users/runner/work/zeromq.js/zeromq.js/node_modules/.pnpm/[email protected]/node_modules/mocha/lib/reporters/base.js:327:10
    at Array.forEach (<anonymous>)
    at Function.exports.list (/Users/runner/work/zeromq.js/zeromq.js/node_modules/.pnpm/[email protected]/node_modules/mocha/lib/reporters/base.js:286:12)
    at Spec.Base.epilogue (/Users/runner/work/zeromq.js/zeromq.js/node_modules/.pnpm/[email protected]/node_modules/mocha/lib/reporters/base.js:426:10)
    at Object.onceWrapper (node:events:631:28)
    at ParallelBufferedRunner.emit (node:events:529:35)
    at ParallelBufferedRunner.emit (node:domain:489:12)
    at /Users/runner/work/zeromq.js/zeromq.js/node_modules/.pnpm/[email protected]/node_modules/mocha/lib/nodejs/parallel-buffered-runner.js:347:14
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
 ELIFECYCLE  Test failed. See above for more details.
Error: Final attempt failed. Child_process exited with error code 1

logs_24997356421.zip

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions