I’m trying to set up some unit tests for my project.
I’m loading a scene from blender and wanted to make a test to check:
if the model is loading correctly
2 does it have all meshes with proper ids that I need.
But I can’t make it load properly with jest.
I looked at Babylon test folder and got 2 questions:
- is this:
// Force apply promise polyfill for consistent behavior between chrome headless, IE11, and other browsers.
somehow transferable to jest?? And is this polyfill needed for tests and that is my problem.
BABYLONDEVTOOLS - what is this ??
Do I need to set up my own server which will serve static assets to load?
I did step 3 already and I’m stuck cause the file exists in the browser but SceneLoader.Append keep failing to find it with error:
Unable to load from 3d/model.babylon: Error in onSuccess callback