How to test an exception was not thrown with Jest?

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://facebook.github.io/jest/docs/en/expect.html#not