Skip to content

console.assert not throwing with v22.4.0 #5634

@tkrotoff

Description

@tkrotoff

According to NodeJS v8.x doc:

a falsy assertion will cause an AssertionError to be thrown

console.assert(false) does not throw with v22.4.0 (was working at least with v22.1.4):

// Does not work anymore
expect(() => console.assert(false, 'message')).toThrow('message');

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions