-
-
Notifications
You must be signed in to change notification settings - Fork 135
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
jest does not work with Resium #105
Comments
craco-cesium does not support test for components using Resium and Cesium, because Cesium depends on require.js (AMD) and web APIs (WebGL, WebWorker, ...). If you want, you have to mock Cesium in Jest, but it seems to be hard. related: #34 |
@rot1024 , I know that's the problem... We need a solution ;) It is also not easy to switch to another test framework, given how CRA is structured. I guess the only solution is to eject and then use something other than jest? |
Hmm... You may need to do one of the following:
|
I need to test with real Cesium outputs, to sanity check my coordinate transformations and whatnot, so I guess (2) it is... |
Yes... I can not take care of the karma installation method, so please let me know if you can. |
I set up resium using the craco approach.
Invoking jest causes
ReferenceError: requirejsVars is not defined
, as discussed here.The solution described there does not work with CRA because there is no way to pass a CLI option to jest(?).
Could this be taken care of automatically by
craco-cesium
?The text was updated successfully, but these errors were encountered: