Hi, I’m trying to write some Jest tests on a Create React App project, but when I try to import any @kitware/vtk.js module and run my Jest tests I get the following error:
Cannot use import statement outside a module
I tried to add the node module to transformIgnorePatterns
:
"transformIgnorePatterns": [
"node_modules/(?!(@kitware)/)"
],
but it doesn’t seem to help at all (unlike it happens with other node modules that had the same issue).
Do you have any suggestion to use @kitware/vtk.js and Jest together?