← スキル一覧に戻る

component-testing
by wmeints
Promptyard is a prompt management tool that helps you organize, optimize, and reuse prompts for applications like ChatGPT and Claude.
⭐ 3🍴 0📅 2026年1月5日
SKILL.md
name: component-testing description: Use this skill to create or modify tests for a component.
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
button.tsxthen the stories file isbutton.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: {},
};
スコア
総合スコア
60/100
リポジトリの品質指標に基づく評価
✓SKILL.md
SKILL.mdファイルが含まれている
+20
○LICENSE
ライセンスが設定されている
0/10
✓説明文
100文字以上の説明がある
+10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
レビュー
💬
レビュー機能は近日公開予定です