mirror of
https://github.com/visgl/react-map-gl.git
synced 2026-01-18 15:54:22 +00:00
13 lines
364 B
JavaScript
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');
|