mirror of
https://github.com/visgl/react-map-gl.git
synced 2026-01-18 15:54:22 +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.
29 lines
543 B
Markdown
29 lines
543 B
Markdown
# 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.
|