toThrow() has no chaining
l00k opened this issue · comments
100k commented
Bug
package
version: 1.1.5node
version: 14.18npm
(oryarn
) version: 6.5
Relevant code or config
expect(() => func())
.toThrow(RuntimeException)
.toMatchObject({ code: 1639229144394 })
toThrow()
seems to not return self object
Works well with other assertions, but not this one.