Skip to content

Commit 52fd622

Browse files
fix: correct FederationModulesPlugin mock export structure
Fix the mock to directly export the plugin instead of wrapping it in a default property, matching the actual default import pattern. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 2e36aab commit 52fd622

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

packages/enhanced/test/unit/container/RemoteModule.test.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,15 @@ jest.mock('../../../src/lib/container/runtime/FederationModulesPlugin', () => {
3434
call: jest.fn(),
3535
});
3636

37-
return {
38-
default: {
39-
getCompilationHooks: jest.fn(() => ({
40-
addContainerEntryDependency: mockHook(),
41-
addFederationRuntimeDependency: mockHook(),
42-
addRemoteDependency: mockHook(),
43-
})),
44-
},
37+
const mockFederationModulesPlugin = {
38+
getCompilationHooks: jest.fn(() => ({
39+
addContainerEntryDependency: mockHook(),
40+
addFederationRuntimeDependency: mockHook(),
41+
addRemoteDependency: mockHook(),
42+
})),
4543
};
44+
45+
return mockFederationModulesPlugin;
4646
});
4747

4848
describe('RemoteModule', () => {

0 commit comments

Comments
 (0)