Skip to content

Commit 0a9f032

Browse files
committed
test: align bundler progress cache fixture with metadata contract
Update the cached build fixture to use the current metadata schema and include built bundle state so the progress test exercises the intended cache-hit path instead of triggering a rebuild. Made-with: Cursor
1 parent e356397 commit 0a9f032

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

packages/shared/bundler-shared/tests/bundler-progress.test.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,15 @@ describe('Bundler progress events', () => {
2929
writeFileSync(join(bundleDir, 'player.js'), '// cached');
3030
writeFileSync(
3131
join(bundleDir, 'build-metadata.json'),
32-
JSON.stringify({ schemaVersion: 1, createdAt: new Date().toISOString() }, null, 2)
32+
JSON.stringify(
33+
{
34+
schemaVersion: 3,
35+
createdAt: new Date().toISOString(),
36+
builtBundles: ['player'],
37+
},
38+
null,
39+
2
40+
)
3341
);
3442

3543
const events: BuildProgressEvent[] = [];

0 commit comments

Comments
 (0)