cornerstonejs / cornerstoneWADOImageLoader

[DEPRECATED] DICOM WADO Image Loader for the cornerstone library
MIT License
284 stars 265 forks source link

test suite failed to run cause import cornerstoneWADOImageLoader in es6 module #406

Open robustNan opened 3 years ago

robustNan commented 3 years ago

when i created a custom tool and want to test it, the error is : test suite failed to run cause import cornerstoneWADOImageLoader in es6 module

my devDependencies is: { "@testing-library/jest-dom": "^5.14.1", "@types/cornerstone-core": "^2.3.0", "@types/jest": "^27.0.2", "@types/node": "^16.10.3", "@vitejs/plugin-vue": "^1.9.3", "@vitejs/plugin-vue-jsx": "^1.2.0", "@vue/cli-plugin-babel": "^4.5.14", "@vue/compiler-sfc": "^3.2.20", "@vue/test-utils": "^2.0.0-rc.16", "babel-jest": "^27.3.1", "eslint": "^8.0.0", "eslint-plugin-vue": "^7.20.0", "jest": "^27.3.1", "less": "^4.1.2", "less-loader": "^10.2.0", "sass": "^1.42.1", "ts-jest": "^27.0.6", "ts-node": "^10.3.0", "typescript": "^4.4.4", "vite": "^2.6.10", "vue3-jest": "^27.0.0-alpha.1" }

20211020185855

doepnern commented 3 years ago

I have the same error using create-react-app when trying to run jest tests. EDIT: I just did some tests: in version 3.3.2 it still woks, from version 4.0.0 onwards im getting this error