🤡(app-impress) mock BlockNoteEditor
BlockNoteEditor uses many libraries not compatible with Jest. This commit mocks the BlockNoteEditor component to allow Jest to run without errors.
This commit is contained in:
@@ -22,6 +22,7 @@ const jestConfig = async () => {
|
||||
moduleNameMapper: {
|
||||
'\\.svg$': '<rootDir>/jest/mocks/svg.js',
|
||||
'^.+\\.svg\\?url$': `<rootDir>/jest/mocks/fileMock.js`,
|
||||
BlockNoteEditor: `<rootDir>/jest/mocks/ComponentMock.js`,
|
||||
...nextJestConfig.moduleNameMapper,
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user