googlemaps / js-jest-mocks

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

Markers not rendering on UI #683

Closed hytechpro-tarunbhardwaj closed 2 months ago

hytechpro-tarunbhardwaj commented 4 months ago

after initialize()

getting only <div id="google-map" style="width: 100%; height: 400px;" />

Marker not rendering in UI and I need to test the onClick event on Marker

wangela commented 4 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.

@hytechpro-tarunbhardwaj 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.

usefulthink commented 3 months ago

None of the classes and functions in this library have any actual implementation (I think the html you posted is also not coming from any part of this library). You can use the mockInstances.get(...) function to get access to API objects created in your code, and you have to implement tests for events etc yourself. Here's a a bit of help regarding that.