react-map-gl/test/node.js
Anh Mai d28d5cb432 Fix flow build process
Fix unit tests. README updates. Add browser tests
Adapt exhibits for react-map-gl
2017-03-24 14:37:00 -07:00

13 lines
364 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');
// Load from dist: Components use JSX so we still need a minimal transpile to run tests
moduleAlias.addAlias('react-map-gl', path.resolve('./dist'));
// Run the tests
require('./index');