Closed lduros closed 6 years ago
Nevermind, I found another thread on this.
Thanks,
Feel free to post a link...
yeah link to thread please
@lduros - this page is the top result on google with "import Feature from 'ol/Feature';" "jest"
. Where is this other link?
Thank you for your interest in making OpenLayers better!
To keep this project manageable for maintainers, we ask you to please check all boxes below before submitting an issue.
ol-debug.js
, notol.js
) that shows the issue.I have created a file and React component, which imports some of the OL classes at the top of the file using the import notation. Now whenever I run jest tests, using
yarn test
, I get the following error:Has anyone encountered something like this?
Here is what I'm importing in my MapBody.js file, and everything works fine from the UI in the app, it's only when running tests, and those tests don't even interact directly with the MapBody.js file, it only happens during loading:
Many thanks,