Skip to content

Commit

Permalink
Update src/playwright/transformPlaywrightJson.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
yannbf authored May 29, 2024
1 parent 4112e69 commit d05e449
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/playwright/transformPlaywrightJson.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ export const transformPlaywrightJson = (index: V3StoriesIndex | V4Index | Unsupp
Object.values((index as V3StoriesIndex).stories)
);
titleIdToEntries = v3TitleMapToV4TitleMap(titleIdToStories);
// v4 and v5 are pretty much similar, so we process it in the same way
} else if (index.v === 4 || index.v === 5) {
// TODO: Once Storybook 8.0 is released, we should only support v4 and higher
titleIdToEntries = groupByTitleId<V4Entry>(Object.values((index as V4Index).entries));
Expand Down

0 comments on commit d05e449

Please sign in to comment.