
Unit Test Vue Pinia
This one helps you write and review unit tests for Vue 3 projects using Pinia for state management. It pushes you toward behavior-first testing: assert what the user sees or what the component emits, not internal implementation details. The Pinia guidance is opinionated and detailed, defaulting to createTestingPinia with vi.fn spies for action assertions, and it explicitly calls out when to use stubActions: false or real store instances. It includes a references/pinia-patterns.md file as your local source of truth, which is a smart touch for team consistency. The workflow is tight: identify the behavior boundary, set up the minimal Pinia config, drive through public inputs, assert outputs. If you're tired of brittle tests that break on refactors, this will nudge you toward the right patterns.
- skills.sh installs
- 1.8K
- GitHub stars
- 41K
- last updated
- Aug 21, 2026
Install
$ npx -y skills add github/awesome-copilot --skill unit-test-vue-pinia --agent claude-codeInstalls into .claude/skills of the current project.
Files
unit-test-vue-pinia
Use this skill to create or review unit tests for Vue components, composables, and Pinia stores. Keep tests small, deterministic, and behavior-first.
Workflow
- Identify the behavior boundary first: component UI behavior, composable behavior, or store behavior.
- Choose the narrowest test style that can prove that behavior.
- Set up Pinia with the least powerful option that still covers the scenario.
- Drive the test through public inputs such as props, form updates, button clicks, emitted child events, and store APIs.
- Assert observable outputs and side effects before considering any instance-level assertion.
- Return or review tests with clear behavior-oriented names and note any remaining coverage gaps.
Core Rules
Sponsors
Details
- Repository
- github.com/github/awesome-copilot
- Categories
- Frontend Development, Testing & QA, Git & Pull Requests, Code Review & Quality, AI & Agent Building, Python
- First seen
- Apr 16, 2026
More from github/awesome-copilot
All 318- Creating Oracle To Postgres Master Migration Plan1.8K
- Creating Oracle To Postgres Migration Bug Report1.8K
- Oo Component Documentation1.8K
- Planning Oracle To Postgres Migration Integration Testing1.8K
- Scaffolding Oracle To Postgres Migration Test Project1.7K
- Gtm 0 To 1 Launch1.7K
- Gdpr Compliant1.7K
- Sandbox Npm Install1.7K
- Semantic Kernel1.7K
- Gtm Technical Product Pricing1.7K
- Aws Cdk Python Setup1.7K
- Gtm Ai Gtm1.6K
- Dotnet Timezone1.6K
- Gtm Board And Investor Communication1.6K
- Quality Playbook1.6K
- Gtm Partnership Architecture1.6K
- Gtm Enterprise Account Planning1.6K
- Gtm Enterprise Onboarding1.6K
- Gtm Operating Cadence1.6K
- Gtm Developer Ecosystem1.5K
- Agent Owasp Compliance1.5K
- Ruff Recursive Fix1.5K
- Threat Model Analyst1.5K
- Azure Architecture Autopilot1.5K