I was trying to write testcases for the project which includes VTK JS. Project built in react. When I try to execute module which contains viewport it throws following error. It will be helpful if someonw can guide.
attribute vec4 vertexMC;
SyntaxError: Unexpected identifier at Runtime.createScriptFromCode (node_modules/jest-runtime/build/index.js:1350:14) at Object.<anonymous> (node_modules/vtk.js/Sources/Rendering/OpenGL/PolyDataMapper/index.js:11:1)