Skip to content

Testing Overview

PIP AI uses Vitest as the test framework with happy-dom for DOM simulation.

Test Stack

ToolPurpose
VitestTest runner and assertion library
happy-domDOM environment for component tests
@vue/test-utilsVue component testing utilities
@nuxt/test-utilsNuxt-specific testing helpers

Test Structure

tests/
├── setup.ts           # Global test setup and mocks
├── composables/       # Composable unit tests
└── ...

Quick Start

bash
# Run tests in watch mode
npm test

# Single test run
npm run test:run

# With coverage report
npm run test:coverage

# Interactive UI
npm run test:ui

Built with VitePress