Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | 60x 2x 60x 60x | import type { ComponentStory } from "@storybook/react"; import * as React from "react"; import { Button } from "stories"; // eslint-disable-next-line storybook/story-exports export default { component: Button, // otherwise this would do a mount test like Untested.stories.tsx // which would be fine in this case, just redundant cyIncludeStories: [], // mdx generated docs includeStories: [], }; export const ExternalTest: ComponentStory<typeof Button> = (args) => ( <Button {...args} /> ); ExternalTest.args = { label: "Will be tested in external .cy file" }; // don't show the component in the docs created by mdx ExternalTest.parameters = { docs: { disable: true }, }; |