Handling errors from async methods in Jest
This blog post was published more than one year ago and might be outdated!
· 2 min read
While testing an async method with ts-jest I came across a problem. The method throws an error on invalid input.
While testing an async method with ts-jest I came across a problem. The method throws an error on invalid input.
We are currently migration an internal tool from Javascript to Typescript. In that process, we also began adding unit tests with Jest (well, ts-jest to be precise).