NASA-AMMOS / 3DTilesRendererJS

Renderer for 3D Tiles in Javascript using three.js
https://nasa-ammos.github.io/3DTilesRendererJS/example/bundle/mars.html
Apache License 2.0
1.57k stars 280 forks source link

The issue with testing by Jest #560

Closed volodymyrprotskiy closed 4 months ago

volodymyrprotskiy commented 4 months ago

The issue occurs when running jest test, is there someway to fix this issue.

Details:

/node_modules/3d-tiles-renderer/src/index.js:1
({"Object.<anonymous>":function(module,exports,require,__dirname,__filename,jest){export * from './three/DebugTilesRenderer.js';

SyntaxError: Unexpected token 'export'
gkjohnson commented 4 months ago

This is an issue with Jest - you'll have to look into how to configure Jest to run with es6 modules.