Full stack developer building things to make life a little easier. Huge fan of JavaScript, React, Node.js, and testing my code. • twitter.com/ZakLaughton • zaklaughton.dev
Typescript isn't great at determining the types of mocked values, but there are some great libraries to help. Personally, I've had great success using the mocked method from ts-jest. See details and usage examples here: ts-jest/test-helpers
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hi Victor! Glad the article helped!
Typescript isn't great at determining the types of mocked values, but there are some great libraries to help. Personally, I've had great success using the
mocked
method from ts-jest. See details and usage examples here: ts-jest/test-helpers