test: mock FLAG_DEMO in hook test

This commit is contained in:
purocean
2024-10-09 16:18:42 +08:00
parent 5dc180dd14
commit e5872672c6
+4
View File
@@ -1,6 +1,10 @@
import * as hook from '@fe/core/hook'
import * as ioc from '@fe/core/ioc'
jest.mock('@fe/support/args', () => ({
FLAG_DEMO: false,
}))
jest.mock('@fe/utils', () => ({
getLogger: () => new Proxy({}, { get: () => () => 0 })
}))