Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
直接コマンドでは確認用 Prompt が省略されます。実行前にソースを確認してください。
npx skills add https://github.com/dipro-vn/dipro-ai-boost --skill testing-jest-unit-test-generationコマンドは1行のまま表示されます。コピー前に横へスクロールして全体を確認してください。
ローカルで確認しますか?SkillsMP が現在取得できるファイルをダウンロードできます。
SOC 職業分類に基づく
SKILL.md を表示中
| name | testing-jest-unit-test-generation |
| description | null |
Category: testing-jest · Status: 🟢 Active
Khi viết unit test (Jest + Testing Library) cho function/component/hook.
it('hiển thị lỗi khi email trống').it('gọi onSubmit với giá trị đã nhập', async () => {
const onSubmit = jest.fn();
render(<LoginForm onSubmit={onSubmit} />);
await userEvent.type(screen.getByLabelText('Email'), 'a@b.com');
await userEvent.click(screen.getByRole('button', { name: /đăng nhập/i }));
expect(onSubmit).toHaveBeenCalledWith({ email: 'a@b.com' });
});
Good: query theo role, assert hành vi, tên test rõ. Avoid: test implementation detail, snapshot bừa, không cleanup.