Skip to content

Commit 00dfe32

Browse files
test: update error message expectations for loadShareSync
Updated test expectations to match the new error message format when loadShareSync is called incorrectly from the runtime. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent 0f42453 commit 00dfe32

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

packages/enhanced/test/configCases/sharing/consume-multiple-versions-ignore-warnings/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ it('should be able to consume different shared module version depending on conte
4848
),
4949
).toBe(true);
5050
expect(() => require('my-module3')).toThrowError(
51-
'loadShareSync failed! The function should not be called unless you set "eager:true"',
51+
'Invalid loadShareSync function call from runtime',
5252
);
5353
expect(require('my-module4')).toBe('[email protected]');
5454
// expectWarning();

packages/enhanced/test/configCases/sharing/consume-multiple-versions/bootstrap.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ it('should be able to consume different shared module version depending on conte
171171
),
172172
).toBe(true);
173173
expect(() => require('my-module3')).toThrowError(
174-
'loadShareSync failed! The function should not be called unless you set "eager:true"',
174+
'Invalid loadShareSync function call from runtime',
175175
);
176176
expect(require('my-module4')).toBe('[email protected]');
177177
// expectWarning();

packages/enhanced/test/configCases/sharing/consume-multiple-versions/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ it('should be able to consume different shared module version depending on conte
171171
),
172172
).toBe(true);
173173
expect(() => require('my-module3')).toThrowError(
174-
'loadShareSync failed! The function should not be called unless you set "eager:true"',
174+
'Invalid loadShareSync function call from runtime',
175175
);
176176
expect(require('my-module4')).toBe('[email protected]');
177177
// expectWarning();

0 commit comments

Comments
 (0)