Skip to content

Commit f8540a7

Browse files
committed
fix: fx tests
1 parent f2d2c27 commit f8540a7

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tests/common/rosAssets.test.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,16 @@ const mockedGenerateAsync = jest.fn();
1313
const mockedInfoLogger = jest.fn();
1414
const mockedDebugLogger = jest.fn();
1515

16+
jest.mock('../../src/common/rosClient', () => ({}));
17+
jest.mock('../../src/common/imsClient', () => ({}));
18+
jest.mock('@alicloud/ros-cdk-core', () => ({}));
19+
20+
jest.mock('@alicloud/ros-cdk-ossdeployment', () => ({
21+
Source: {
22+
asset: jest.fn().mockImplementation(() => ({ bind: jest.fn() })),
23+
},
24+
}));
25+
1626
jest.mock('node:async_hooks', () => ({
1727
AsyncLocalStorage: jest.fn().mockImplementation(() => ({
1828
enterWith: jest.fn(),

0 commit comments

Comments
 (0)