gatsby-starter-leaflet
gatsby-starter-leaflet copied to clipboard
Create tests using leaflet mock
Create some tests using the Leaflet mock under tests/__mocks__.
Particularly, can start with mocking out a map and testing functionality for promiseToZoomIn available in lib/map.
Could be a nice way to brush up my testing skills, i'll give it a try :)
sounds great!
Unfortunately i cannot see the promiseToZoomIn func under lib/map.js, is it not merged to master yet?
sorry about that! that must have changed since this isssue was created
want to do promiseToFlyTo? https://github.com/colbyfayock/gatsby-starter-leaflet/blob/d20d304fd1ee917055c4f083c7b1237dc8c26928/src/lib/map.js#L6
Sure :)
I already see that you have a unit test for this functionality in map.test.js, are you sure you also need a cypress test for that?
if you think we're comfortably covered then we can close this out @RonnyNovik
apologies if thats the case, this Issue must just be stale then
happy to accept any other coverage if you find any thats needed between Jest and Cypress