Skip to content

Commit 347d204

Browse files
committed
test(rsc-mf): lock lazy callback bootstrap import semantics
1 parent 6953bab commit 347d204

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

tests/integration/rsc-mf/tests/index.test.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -480,6 +480,10 @@ function runTests({ mode }: TestConfig) {
480480
),
481481
).toBe(true);
482482
expect(runtimeInitSource).toContain('registerRemoteServerCallback');
483+
expect(runtimeInitSource).toContain("import('./registerServerCallback')");
484+
expect(runtimeInitSource).not.toContain(
485+
"from './registerServerCallback'",
486+
);
483487
expect(runtimeRegisterSource).toContain('setServerCallback');
484488
expect(moduleFederationConfigSource).toContain(
485489
'CALLBACK_BOOTSTRAP_IMPORT',

0 commit comments

Comments
 (0)