Skip to content

Commit dd59515

Browse files
JReinholdCopilot
andauthored
Update packages/addon-mcp/src/tools/preview-stories.test.ts
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 14ed3a5 commit dd59515

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/addon-mcp/src/tools/preview-stories.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -684,9 +684,9 @@ describe('previewStoriesTool', () => {
684684
});
685685
});
686686

687-
it('should match stories when index.json importPath has leading ./ and computed path does not', async () => {
687+
it('should match stories when both index.json importPath and computed path have leading ./ and normalization still works', async () => {
688688
// Simulate running Storybook from root where index.json uses ./stories/...
689-
// The computed relative path also starts with ./stories/...
689+
// The computed relative path also starts with ./stories/... and normalization preserves the match
690690
fetchStoryIndexSpy.mockResolvedValue(monorepoStoryIndexFixture);
691691

692692
const request = {

0 commit comments

Comments
 (0)