googlemaps / googlemaps/js-jest-mocks

places.PlacesServiceStatus.OK is not mocked

Open
#659 1 comment 2 reactions 0 assignees View on GitHub
type: feature request
Dominant language
TypeScript
Stars
42
Forks
33
Avg merge
1m
Merged PRs (30d)
3

Description

Hello!

I'm encountering this next error while testing a component that uses a 3rd party library that uses google maps API:
![image](https://github.com/googlemaps/js-jest-mocks/assets/57009512/fb6d7904-0c1a-422b-986c-8017f3d74264)

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!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.