From e5872672c6bc1c4cec3d93a3aeb1907f1ed6e70f Mon Sep 17 00:00:00 2001 From: purocean Date: Wed, 9 Oct 2024 16:18:42 +0800 Subject: [PATCH] test: mock FLAG_DEMO in hook test --- src/renderer/__tests__/core/hook.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/renderer/__tests__/core/hook.ts b/src/renderer/__tests__/core/hook.ts index 70347c33..6522f189 100644 --- a/src/renderer/__tests__/core/hook.ts +++ b/src/renderer/__tests__/core/hook.ts @@ -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 }) }))