Upgrading from CesiumJS 1.91 to 1.92+ causes jest tests to be unable to invoke the UrlTemplateImageryProvider constructor, the returned object is empty (all default values) when on 1.91 and lower it was populated.
Running in debugger we can see there is a stack trace error now
You can see here the resource attribute has been set to undefined which is definitely not the case.
Thanks for any help
Edit: I missed an error message that I can get through the debugger - this does not cause an app crash but the object remains unpopulated.
TypeError: Cannot read properties of undefined (reading 'length') at Object.get (__project-path__\node_modules\cesium\Build\CesiumUnminified\index.cjs:26966:30) at Object.<anonymous> (<anonymous>:1:26)
We import cesium from npm - currently v1.91 (1.92 and above is when it starts to break), and then have declare var Cesium in project level typing files to be able to access the cesium object.
Unfortunately this error only seems to happen inside of the jest test environment, I’m working on a stackblitz to demonstrate this. Running the angular app normally it all works, its just the jest environment.
Is there any jest/testing related changes in 1.92 that we need to be aware of? There were imageryprovider changes stated in the changelog.