You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Similar to #108 other dependencies like react-colorful or esm-browser are causing problems because they need to be transpiled before jest can loaded.
Context
When jest load tests it also needs to load the code dependencies from node_modules. Those dependencies sometimes need transformation before jest can load them otherwise nodejs can't run them. e.g.: because they are written in typescript or they are ESM that some nodejs version don't understand.
Jest has a configuration list of regex that tells it which packages should not transform, by default jest won't transform any module inside node_modules.
This previous PR created an exception for the package ol: open layers but there are much more packages that will have this problem and fail to run inside jest.
Suggested solutions:
Create and maintain a list of packages that should be transformed by jest and keep the list up to date
Ask jest to transform all packages regardless if they need transformation or not
Let the users maintain the list of packages on their own
The text was updated successfully, but these errors were encountered:
Similar to #108 other dependencies like react-colorful or esm-browser are causing problems because they need to be transpiled before jest can loaded.
Context
When jest load tests it also needs to load the code dependencies from node_modules. Those dependencies sometimes need transformation before jest can load them otherwise nodejs can't run them. e.g.: because they are written in typescript or they are ESM that some nodejs version don't understand.
Jest has a configuration list of regex that tells it which packages should not transform, by default jest won't transform any module inside node_modules.
This previous PR created an exception for the package
ol
: open layers but there are much more packages that will have this problem and fail to run inside jest.Suggested solutions:
The text was updated successfully, but these errors were encountered: