Awesome-claude-code storybook-testing
Use this skill to create or modify tests for a component.
install
source · Clone the upstream repo
git clone https://github.com/wmeints/awesome-claude-code
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/wmeints/awesome-claude-code "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/storybook-testing" ~/.claude/skills/wmeints-awesome-claude-code-storybook-testing && rm -rf "$T"
manifest:
skills/storybook-testing/SKILL.mdsource content
Component testing
Use this skill to create or modify component tests for the application.
Creating stories
- Create a separate story for each state of the component.
- Add tests to verify event handling logic included in the component.
- Stories must be added next to the component.
- If the component file is
then the stories file isbutton.tsxbutton.stories.tsx
Template for a component story
import { GitHubSignInButton } from "./github-signin-button"; // The module exporting the component import { Meta, StoryObj } from "@storybook/nextjs-vite"; // Required framework components const meta = { component: GitHubSignInButton, // The exported component title: "Components/Auth/GitHubSignInButton", // The logical path to the component. } export default meta; type Story = StoryObj<typeof meta>; export const Default: Story = { args: {}, };