
unit-test-vue-pinia
Write and review unit tests for Vue 3 + TypeScript + Vitest + Pinia codebases
by githubFree
Description
unit-test-vue-pinia is an agent skill from the github/awesome-copilot collection for writing and reviewing unit tests for Vue 3 applications built with TypeScript, Vitest and Pinia. It covers Vue components, composables and Pinia stores. The workflow starts by identifying the behavior under test, whether it is component UI behavior, composable behavior or store behavior, and then chooses the narrowest test style that can prove it. Pinia is set up with the least powerful option that covers the scenario. Tests are driven through public inputs such as props, form updates, button clicks, events emitted by child components and store APIs, and they assert observable outputs and side effects rather than the internal state of an instance. The skill's core rules keep tests small, deterministic and focused on behavior, and each test gets a name that describes the behavior it checks. It is useful for Vue teams that want tests that survive refactoring, because they check what the user and the rest of the application see rather than implementation details. The skill is installed with the skills CLI from the github/awesome-copilot repository. Its skills.sh page showed about 1.8K installs and passing results from three security audits at the time of the scan.…
Highlights
- Tests for Vue components, composables and Pinia stores
- Narrowest test style that proves the behavior
- Drives tests through props, clicks and store APIs
- Asserts observable outputs and side effects
- Installs with the skills CLI
Ratings & Reviews
No ratings yet
Be the first to rate unit-test-vue-pinia.
People also visit
unit-test-vue-pinia FAQ
What does it test?
Vue components, composables and Pinia stores, with TypeScript and Vitest.
What does it assert on?
Observable outputs and side effects, not internal instance state.
How are tests driven?
Through public inputs such as props, form updates, clicks, child events and store APIs.
How do I install it?
Run npx skills add https://github.com/github/awesome-copilot --skill unit-test-vue-pinia.
What security audits does it have?
skills.sh lists three audits: Gen Agent Trust Hub Pass, Socket Pass and Snyk Pass.
What are the best unit-test-vue-pinia alternatives?
Popular alternatives to unit-test-vue-pinia include vue-expert, vue-patterns and csharp-nunit. See all unit-test-vue-pinia alternatives












