react-google-maps-api
react-google-maps-api copied to clipboard
Create E2E tests with `cypress` or `puppeteer` against dev docs, and run it before each commit.
Currently we have no tests implemented at all. We have Typescript, Eslint, docs generation and gatsby.js example
We can't use dom based tests with node.js environment, cos we need to have window.google global object created by google-maps-api script, loaded in runtime by <LoadScript /> component.
We need to run headless browser tests with cypress against dev docs build before each commit with husky and lint-staged
There is a gatsby-plugin-cypress, which we can leverage for testing gatsby-example
We could use puppeteer https://www.youtube.com/watch?v=MbnATLCuKI4