fix(UnitTests): Fixing "Cannot find module @cornerstonejs/core" error while running unit tests (#5148)

This commit is contained in:
Vinícius Alves de Faria Resende authored and GitHub committed 2025-07-11 16:36:49 -04:00
1 parent 277cef2168
commit 4a59126dd9
9 files changed
+181 -164

No files matched your search

+1 -3
View File
@@ -1,13 +1,11 @@
const base = require('../../jest.config.base.js');
const pkg = require('./package');
module.exports = {
...base,
name: pkg.name,
displayName: pkg.name,
moduleNameMapper: {
...base.moduleNameMapper,
'@ohif/(.*)': '<rootDir>/../../platform/$1/src',
'^@cornerstonejs/(.*)$': '<rootDir>/../../node_modules/@cornerstonejs/$1/dist/esm',
},
// rootDir: "../.."
// testMatch: [