vitest-testing

Installation
SKILL.md

Vitest Testing

Test File Placement

Source location Test location
app/composables/<name>.ts tests/app/composables/<name>.test.ts
app/components/<Name>.vue app/components/__tests__/<Name>.test.ts (DOM tests) OR tests/app/components/<Name>.test.ts (logic-only)
app/utils/<name>.ts tests/app/utils/<name>.test.ts
services/<name>.ts tests/services/<name>.test.ts
utils/<name>.ts tests/utils/<name>.test.ts
terraform/lambda/src/<Name>/index.ts terraform/lambda/src/<Name>/__tests__/index.test.ts

Use __tests__/ co-location only for component DOM tests and Lambda handlers. Everything else goes in the top-level tests/ mirror tree.

Environment Selection

Installs
17
First Seen
Mar 7, 2026
vitest-testing — ralphcrisostomo/nuxt-development-skills