fix: 修复jest单测获取codemirror依赖失败的问题

This commit is contained in:
刘洪洪
2023-12-25 14:32:22 +08:00
parent 2dbf5ee84e
commit e08a7a2434

View File

@@ -59,3 +59,5 @@ config.global.mocks.$route = { query: '' }
config.global.mocks.$_ = _
/* 消除warn */
jest.spyOn(console, 'warn').mockImplementation(() => {})
/* 模拟codemirror */
jest.mock('codemirror')