-
-
Notifications
You must be signed in to change notification settings - Fork 9.8k
Closed
Description
Describe the bug
Reproduction link
https://stackblitz.com/edit/github-8sdhkcnj?file=src%2Fstories%2FButton.stories.ts&preset=node
Reproduction steps
import type { Meta, StoryObj } from '@storybook/react-vite';
// By commenting this out, the type error in line 22 will stop.
// import { fn } from 'storybook/test';
import { Button } from './Button';
const meta = {
title: 'Example/Button',
component: Button,
} satisfies Meta<typeof Button>;
export default meta;
type Story = StoryObj<typeof meta>;
export const Default: Story = {
args: {
primary: true,
label: 'Button',
},
play: async ({ canvas }) => {
canvas.getByRole('button');
},
};dosubot and ahayes91
