Added type definitions library doesn't work with jest

78 Views Asked by At

I added @types/google.maps type definitions library to the react application and it works fine everywhere except tests: when I run my jest tests I'm getting "ReferenceError: google is not defined" everywhere I used google.maps types from the library. Has anyone else encountered a similar problem?

0

There are 0 best solutions below