Unit Testing Guidelines

**PRIMARY SKILL FOR TESTING** — Guidelines and best practices for writing unit tests for Vue 3 components, composables, and utilities. USE FOR: - Writing new test files or updating existing tests - Understanding testing patterns (AAA, mocking, async testing) - Testing defineModel(), props, emits, and slots - Debugging test failures or improving test coverage DO NOT USE FOR: - Understanding how components should be implemented (use components-guidelines) - Writing or modifying component .vue files (use components-guidelines) WHEN TO COMBINE: Only load components-guidelines if you have read the component file and need additional context with specific Vue patterns that aren't covered in the test examples or derrived from the component.

cmu-sei 7bf1b16 20.8 KB Updated

File contents

cmu-sei/sei-design-system/tree/main/.github/skills/unit-testing-guidelines commit 7bf1b16b8c

Frequently asked questions

npx skillmds@latest add cmu-sei/unit-testing-guidelines