Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Boot event has no metadata
  • Loading branch information
tmeasday committed May 27, 2025
commit 90a17aed10c68feeba2b5d41a86b61cee769a734
10 changes: 6 additions & 4 deletions scripts/event-log-checker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,12 @@ async function run() {

const [bootEvent, mainEvent] = events;

test(`both events should have storybookVersion in metadata`, () => {
const cliVersion = versions.storybook;
assert.equal(bootEvent.metadata.storybookVersion, cliVersion);
assert.equal(mainEvent.metadata.storybookVersion, cliVersion);
test('boot event should have cliVersion in context', () => {
assert.equal(bootEvent.context.cliVersion, versions.storybook);
});

test(`main event should have storybookVersion in metadata`, () => {
assert.equal(mainEvent.metadata.storybookVersion, versions.storybook);
});

test(`Should log a boot event with a payload of type ${eventType}`, () => {
Expand Down