You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Because some of our web components require an OS API key as a property, it means that our unit test references the existing environment variable and would fail with an invalid key.
In order to avoid making live requests during testing and making the tests more resiliant for users without an API key, we should add mocks of the expected responses (at least for OS Places API, we'll still have to think about how we deal with OS Vector Tiles etc).
Because some of our web components require an OS API key as a property, it means that our unit test references the existing environment variable and would fail with an invalid key.
In order to avoid making live requests during testing and making the tests more resiliant for users without an API key, we should add mocks of the expected responses (at least for OS Places API, we'll still have to think about how we deal with OS Vector Tiles etc).
https://vitest.dev/guide/mocking.html
See #139 (comment)
The text was updated successfully, but these errors were encountered: