fix(UnitTests): Fixing "Cannot find module @cornerstonejs/core" error while running unit tests (#5148)
This commit is contained in:
1 parent
277cef2168
commit
4a59126dd9
9 files changed
+181
-164
No files matched your search
@@ -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: [
|
||||
|
||||
Reference in new issue
Block a user