diff --git a/tests/init.ts b/tests/init.ts index 3fb2cbfee0e..c0d43a203b7 100644 --- a/tests/init.ts +++ b/tests/init.ts @@ -55,6 +55,12 @@ jest.mock( { virtual: true, }, ); +jest.mock( + '@base/global', + () => jest.requireActual('../cocos/base/global/src/index.ts'), + { virtual: true, }, +); + jest.mock( 'pal/pacer', () => jest.requireActual('../pal/pacer/pacer-web'),