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
+5
-1
@@ -6,10 +6,14 @@
|
||||
module.exports = {
|
||||
verbose: true,
|
||||
// roots: ['<rootDir>/src'],
|
||||
testMatch: ['<rootDir>/src/**/*.test.js'],
|
||||
testMatch: ['<rootDir>/src/**/*.test.js', '<rootDir>/src/**/*.test.ts'],
|
||||
testPathIgnorePatterns: ['<rootDir>/node_modules/'],
|
||||
testEnvironment: 'jsdom',
|
||||
moduleFileExtensions: ['js', 'jsx', 'ts', 'tsx'],
|
||||
transform: {
|
||||
'^.+\\.[jt]sx?$': 'babel-jest',
|
||||
},
|
||||
transformIgnorePatterns: [],
|
||||
moduleNameMapper: {
|
||||
'\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$':
|
||||
'<rootDir>/src/__mocks__/fileMock.js',
|
||||
|
||||
Reference in new issue
Block a user