Skip to content

toThrow(constructor, message) #157

@mattphillips

Description

@mattphillips

Clone of jestjs/jest#3659

expect(()=>{
  throw new Error('1234');
}).toThrow(Error, 'hello');

All that needs working out is the name as toThrow is built into core and so this shouldn't clash with it

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