react-map-gl/TESTING.md
Collin Donahue-Oponski 0aa18ee7ae Add transformRequest prop to map components. (#426)
* 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.
2017-12-19 00:54:34 -08:00

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.