Lightlines
By github

unit-test-vue-pinia

github1.9k installs

Tests that check behavior, not implementation details.

What it does

Creates and reviews behavior-focused unit tests for Vue components, composables, and Pinia stores.

When to use it

Use when creating or updating component, composable, and store tests, including Pinia mocking and Vue Test Utils patterns.

How to use it

It changes how the agent writes and reviews project tests by favoring minimal test setups, public inputs, and observable behavior.

What you provide

  • An existing project

Uses

Latest review

What you need · 3

Provides createTestingPinia for component test setups with stubbed actions and action spies.

Provides the mount helper used in the component testing pattern.


Access · 2

This skill

Vue Test Utils guide

Read

Reads Vue Test Utils guidance

Pinia testing cookbook

Read

Consults the Pinia testing cookbook