mirror of
https://github.com/purocean/yn.git
synced 2026-09-24 15:46:02 +08:00
test: mock FLAG_DEMO in hook test
This commit is contained in:
@@ -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 })
|
||||
}))
|
||||
|
||||
Reference in New Issue
Block a user