help([google-maps]): [Working example of testing a component which uses a google map]

Is there an example project somewhere showing how to test a component using a google-map component ? I’ve tried a lot of things, but I had to give up.

For example I tried using the following code in my beforeEach :

    mapSpy = createMapSpy(DEFAULT_OPTIONS);
    mapConstructorSpy = createMapConstructorSpy(mapSpy);

But I still get an error such as “Uncaught TypeError: googleMap.setOptions is not a function “

2 thoughts on “help([google-maps]): [Working example of testing a component which uses a google map]

  1. Am having the same problem with Angular 9.1 where I’m getting ReferenceError: google is not defined in my unit tests, so I’d love to see a working example too..