googlemaps / js-jest-mocks

Jest mocks for Google Maps Platform
Apache License 2.0
33 stars 29 forks source link

places.PlacesServiceStatus.OK is not mocked #659

Open Somacros opened 5 months ago

Somacros commented 5 months ago

Hello!

I'm encountering this next error while testing a component that uses a 3rd party library that uses google maps API: image

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:

image

So my request is to add that mock for that particular flag. Thank you!

wangela commented 5 months ago

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:

This is an automated message, feel free to ignore.