Skip to content

Error processing test.finish event: TypeError: finish is not a function #5461

@incoming-th

Description

@incoming-th

Hi,

I believe this is a small fix but I can't figure it from where.

Maybe someone could help to check and guide, or even better already has a solution for this:

Error processing test.finish event:
TypeError: finish is not a function
at EventEmitter. (/.../node_modules/codeceptjs/lib/pause.js:40:5)
at EventEmitter.emit (node:events:529:35)
at Object.emit (/.../node_modules/codeceptjs/lib/event.js:162:28)
at /.../node_modules/codeceptjs/lib/mocha/asyncWrapper.js:74:13
at /.../node_modules/codeceptjs/lib/recorder.js:274:9

Image

Can be reproduced by doing:

recorder.add(Error, () => Promise.reject(new Error(message)));

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions