js-jest-mocks
js-jest-mocks copied to clipboard
places.PlacesServiceStatus.OK is not mocked
Hello!
I'm encountering this next error while testing a component that uses a 3rd party library that uses google maps API:
I made this work by searching which property it is trying to read and mocking it by extending the global.window.google object you create with the method initialize() like this:
So my request is to add that mock for that particular flag. Thank you!
If you would like to upvote the priority of this issue, please comment below or react on the original post above with :+1: so we can see what is popular when we triage.
@Somacros Thank you for opening this issue. 🙏 Please check out these other resources that might help you get to a resolution in the meantime:
- Check the issue tracker - bugs and feature requests for Google Maps Platform APIs and SDKs
- Open a support case - Get 1:1 support in Cloud Console.
- Discord - chat with other developers
-
StackOverflow - use the
google-mapstag
This is an automated message, feel free to ignore.