When trying to get our unit tests running using Karma, I got the following error message:
“google is not defined”
Inside our application we are calling the google map API. During the tests the google map library cannot be found resulting in the error message above.
To fix it, we have to add this library to the files section in our karma.conf.js file: