list_tests
Explore and catalog test files in your project using supported patterns (.test., .spec.). Recursively searches directories, providing structured file details like paths and relative locations. Ideal for understanding test organization and identifying coverage scope.
Instructions
Discover and catalog test files across the project with support for common test file patterns (.test., .spec.). Recursively searches directories and provides structured file information including paths and relative locations. Useful for understanding test organization and coverage scope. Requires set_project_root to be called first.
USE WHEN: User wants to explore test structure, find test files, understand test organization, or asks "what tests exist", "show me test files", or mentions exploring/finding tests. Also use when "vitest-mcp:" prefix is included and context involves test discovery.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
path | No | Optional directory path to search for test files. Can be relative (e.g., "./src/components") or absolute. If not provided, searches the entire project root. Useful for limiting search scope to specific directories or modules. |