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.
13 lines
375 B
JavaScript
13 lines
375 B
JavaScript
// Enables ES2015 import/export in Node.js
|
|
require('reify');
|
|
|
|
// Registers an alias for this module
|
|
const path = require('path');
|
|
const moduleAlias = require('module-alias');
|
|
|
|
// Needed for `npm run test`, whereas `npm run test-browser` alias is declared in webpack.config.js
|
|
moduleAlias.addAlias('react-map-gl', path.resolve('./src'));
|
|
|
|
// Run the tests
|
|
require('./index');
|