You can always use the .not method, which will be valid if your initial condition is false. It works for every jest test:
expect(() => ...error...).not.toThrow(error)
https://jestjs.io/docs/expect#not
You can always use the .not method, which will be valid if your initial condition is false. It works for every jest test:
expect(() => ...error...).not.toThrow(error)
https://jestjs.io/docs/expect#not