Breno Calazans

How to use TypeScript and Jest mocks

2019-07-101 Min Read — In Jest, TypeScript

It's pretty common to mock modules in Jest. When using TypeScript that might be a bit harder because they are not automatically resolved by TypeScript. Let's say we are using a function useFooContext…

EOF