Closed volodymyrprotskiy closed 1 month ago
If TextDecoder isn't available then you're likely using an outdated version of node.js.
I use "jsdom" as test environment
If you've made modifications to the project you're not stating here then I can't help. The tests run with the versions of node used in the ci.
I just use the lib in my own project
Sorry - I see you're running tests in you're own project. If you're following the set up that jest and jsdom suggest then you'll need to report an issue at those repositories. TextDecoder is a valid JS class in the browser and node.js.
The issue is related only to 0.3.38 version of the 3d-tiles-renderer lib, so I assume you can help me here
The project was updated to use TextDecoder in prior version, which has been available for years, which is why it wouldn't have happened previously if that class is an issue for some reason. Unfortunately I can't help if your test environments are not working with browser-compatible javascript. Again, I would ask at the appropriate places for help with your test environment set up.
The tests is running well with 3d-tiles-renderer v0.3.31, and only after updating the lib to v0.3.38 the issue with TextDecoder occured.
Hi, all!
I have run my Jest test after updating the 3d-tiles-renderer from v0.3.31 to v0.3.38, and an error occurred. Could someone help here?
The error message: "Test suite failed to run. ReferenceError: TextDecoder is not defined."