mirror of
https://github.com/visgl/react-map-gl.git
synced 2025-12-08 20:16:02 +00:00
* Add map prop/option `transformRequest`. * Upgrade sinon package to webpack-compatible version. * Fix test for map onLoad prop. * Add test for new Map prop `transformRequest`. * Document and cleanup new `tranformRequest` prop on Map component.
543 B
543 B
Testing
Unit, Lint
npm run test
Browser
npm run test-browser
You'll need to specify a valid Mapbox Access Token in the URL for the tests to pass.
http://localhost:8080/?access_token=MAPBOX_ACCESS_TOKEN
Bumping Mapbox Version
Always pin Mapbox to a specific release.
The React controls (NavigationControl, Popup and Marker) are dependent on
the Mapbox stylesheet, and may be broken by Mapbox updates.
Always run examples/controls after bumping Mapbox version to make sure they
still work.