Skip to content

Commit

Permalink
Merge pull request #27075 from storybookjs/jeppe/remove-portable-stor…
Browse files Browse the repository at this point in the history
…ies-docs-link

Portable Stories: Remove link to missing docs
  • Loading branch information
ndelangen authored May 9, 2024
2 parents f9ca4d0 + 15a49b4 commit 25de7f6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -292,8 +292,7 @@ describe('composeStory', () => {
`
"Some stories were not cleaned up before rendering 'Unnamed Story (firstArg, secondArg)'.
You should load the story with \`await Story.load()\` before rendering it.
See https://storybook.js.org/docs/api/portable-stories-vitest#3-load for more information."
You should load the story with \`await Story.load()\` before rendering it."
`
);
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,11 +142,10 @@ export function composeStory<TRenderer extends Renderer = Renderer, TArgs extend
console.warn(
dedent`Some stories were not cleaned up before rendering '${humanReadableIdentifier}'.
You should load the story with \`await Story.load()\` before rendering it.
See https://storybook.js.org/docs/api/portable-stories-${
process.env.JEST_WORKER_ID !== undefined ? 'jest' : 'vitest'
}#3-load for more information.`
You should load the story with \`await Story.load()\` before rendering it.`
);
// TODO: Add a link to the docs when they are ready
// eg. "See https://storybook.js.org/docs/api/portable-stories-${process.env.JEST_WORKER_ID !== undefined ? 'jest' : 'vitest'}#3-load for more information."
}
return story.unboundStoryFn(prepareContext(context));
},
Expand Down

0 comments on commit 25de7f6

Please sign in to comment.