Skip to content

All subsequent tests will be skipped if throw non Error #229

@farwayer

Description

@farwayer

Thanks for the nice lib! Just started using it and found a bug:

test('example', () => new Promise((resolve, reject) => {
  reject()
})

test('example', () => new Promise((resolve, reject) => {
  reject("reason")
})

test('example', () => {
  throw "reason"
})

As result test fail will be silently ignored. The bug is here: format function expects that err is defined and is Error instance although this is not required.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions