BabylonJS Typescript imports fail for MochaJS specs

Hi there!

I’m facing the same problems as @fjk.

We’re working on a TS project using Webpack & BabylonJS and are a little stuck on making our code testable as importing certain classes from BabylonJS always breaks the tests with different errors.

We’re not “bound” to a specific testing framework ATM but we were not able to succeed with any we’ve tried so far (mocha, jest, jasmine).

Our experience is very similar to what @fjk describes. Especially “shifting the problem around (read: solving one, opening another)” pretty much brings it to the point.

In the end all issues we’ve seen so far have something to do with importing BJS classes into our tests.

I’d really appreciate some progress or help on this as well!

Thanks