/** * Test Parser * * Parses test files to extract test cases and metadata */ import type { TestFile, TestCase, TestFramework } from "../../types/test-coverage.js"; export declare class TestParser { private projectRoot; private readonly TEST_PATTERNS; private readonly EXCLUDE_DIRS; constructor(projectRoot: string); /** * Find all test files in the project */ findTestFiles(): Promise; /** * Walk directory to find test files */ private walkDirectory; /** * Check if a file is a test file */ private isTestFile; /** * Parse a single test file */ parseTestFile(filePath: string): Promise; /** * Detect test framework from content */ detectFramework(content: string): TestFramework; /** * Extract test cases from file content */ extractTestCases(content: string, filePath: string): TestCase[]; /** * Extract a test block (from it/test to closing bracket) */ private extractTestBlock; /** * Count assertions in a test block */ countAssertions(block: string): number; /** * Detect if mocks are used in a test block */ detectMocks(block: string): boolean; /** * Infer source file from test file path */ inferSourceFile(testPath: string): string | undefined; /** * Parse all test files in project */ parseAllTestFiles(): Promise; } //# sourceMappingURL=test-parser.d.ts.map