Skip to content

Commit 51ba0c7

Browse files
fix: add jest.resetModules() to RemoteModule test
Ensure proper cleanup of module mocks between test runs to prevent compilation instance validation errors. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent 067708e commit 51ba0c7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ describe('RemoteModule', () => {
3535

3636
beforeEach(() => {
3737
jest.clearAllMocks();
38+
jest.resetModules();
3839

3940
const { mockCompilation: compilation } = createMockCompilation();
4041
mockCompilation = compilation;

0 commit comments

Comments
 (0)