mattphillips / jest-chain

Chain Jest matchers together to create one powerful assertion 🃏⛓

Home Page:https://www.npmjs.com/package/jest-chain

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

toThrow() has no chaining

l00k opened this issue · comments

commented

Bug

  • package version: 1.1.5
  • node version: 14.18
  • npm (or yarn) 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.