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
Rename
  • Loading branch information
kasperpeulen committed Aug 26, 2025
commit 620663c8c85455d76f83db90349a05ab3221a81e
10 changes: 5 additions & 5 deletions code/core/src/preview-api/modules/store/csf/processCSFFile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,14 +68,14 @@ export function processCSFFile<TRenderer extends Renderer>(

// if the story has tests, we need to add those to the csfFile

getStoryChildren(story).forEach((story) => {
const testName = story.input.name!;
const testId = toTestId(storyMeta.id, testName);
getStoryChildren(story).forEach((child) => {
const name = child.input.name!;
const childId = toTestId(storyMeta.id, name);
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore We provide the __id parameter because we don't want normalizeStory to calculate the id
storyTest.input.parameters.__id = testId;
storyTest.input.parameters.__id = childId;

csfFile.stories[testId] = normalizeStory(testName, story.input as any, meta);
csfFile.stories[childId] = normalizeStory(name, child.input as any, meta);
});
}
});
Expand Down
Loading