Skip to content

Commit 3e1432c

Browse files
committed
test: align bundler cache fixture with metadata contract
Update the cached-bundle progress test to include build metadata so it exercises the intended cache-hit path after schema-versioned metadata validation was introduced. Made-with: Cursor
1 parent 89adc85 commit 3e1432c

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ describe('Bundler progress events', () => {
2727
const bundleDir = join(outputDir, hash);
2828
mkdirSync(bundleDir, { recursive: true });
2929
writeFileSync(join(bundleDir, 'player.js'), '// cached');
30+
writeFileSync(
31+
join(bundleDir, 'build-metadata.json'),
32+
JSON.stringify({ schemaVersion: 1, createdAt: new Date().toISOString() }, null, 2)
33+
);
3034

3135
const events: BuildProgressEvent[] = [];
3236
const bundler = new Bundler(outputDir, cacheDir);

0 commit comments

Comments
 (0)