react-map-gl/test/node.js
Ib Green fa4ae3ffbb Buble+webpack2 (#169)
* Compile with buble and bundle with webpack
* Reduce number of dependencies
* Support for tree-shaking
* Standalone, easy-to-understand example with small package.json
* Tests now work under Node.js even when loading mapbox-gl.
* Fix travis config
2017-03-07 14:55:57 -08:00

11 lines
275 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');
moduleAlias.addAlias('react-map-gl', path.resolve('./dist'));
// Run the tests
require('./index');