tdd-guard
Version: 
Automated Test-Driven Development enforcement for Claude Code
82 lines • 2.91 kB
TypeScript
import { z } from 'zod';
export declare const TestErrorSchema: z.ZodObject<{
    message: z.ZodString;
    stack: z.ZodOptional<z.ZodString>;
}, z.core.$strip>;
export declare const UnhandledErrorSchema: z.ZodObject<{
    name: z.ZodString;
    message: z.ZodString;
    stack: z.ZodOptional<z.ZodString>;
}, z.core.$strip>;
export declare const TestSchema: z.ZodObject<{
    name: z.ZodString;
    fullName: z.ZodString;
    state: z.ZodEnum<{
        passed: "passed";
        failed: "failed";
        skipped: "skipped";
    }>;
    errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
        message: z.ZodString;
        stack: z.ZodOptional<z.ZodString>;
    }, z.core.$strip>>>;
}, z.core.$strip>;
export declare const TestModuleSchema: z.ZodObject<{
    moduleId: z.ZodString;
    tests: z.ZodArray<z.ZodObject<{
        name: z.ZodString;
        fullName: z.ZodString;
        state: z.ZodEnum<{
            passed: "passed";
            failed: "failed";
            skipped: "skipped";
        }>;
        errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
            message: z.ZodString;
            stack: z.ZodOptional<z.ZodString>;
        }, z.core.$strip>>>;
    }, z.core.$strip>>;
}, z.core.$strip>;
export declare const TestResultSchema: z.ZodObject<{
    testModules: z.ZodArray<z.ZodObject<{
        moduleId: z.ZodString;
        tests: z.ZodArray<z.ZodObject<{
            name: z.ZodString;
            fullName: z.ZodString;
            state: z.ZodEnum<{
                passed: "passed";
                failed: "failed";
                skipped: "skipped";
            }>;
            errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
                message: z.ZodString;
                stack: z.ZodOptional<z.ZodString>;
            }, z.core.$strip>>>;
        }, z.core.$strip>>;
    }, z.core.$strip>>;
    unhandledErrors: z.ZodOptional<z.ZodArray<z.ZodObject<{
        name: z.ZodString;
        message: z.ZodString;
        stack: z.ZodOptional<z.ZodString>;
    }, z.core.$strip>>>;
    reason: z.ZodOptional<z.ZodEnum<{
        passed: "passed";
        failed: "failed";
        interrupted: "interrupted";
    }>>;
}, z.core.$strip>;
export type TestError = z.infer<typeof TestErrorSchema>;
export type UnhandledError = z.infer<typeof UnhandledErrorSchema>;
export type Test = z.infer<typeof TestSchema>;
export type TestModule = z.infer<typeof TestModuleSchema>;
export type TestResult = z.infer<typeof TestResultSchema>;
export declare function isTestModule(value: unknown): value is TestModule;
export declare function isTestCase(value: unknown): value is Test;
export declare function isFailingTest(value: unknown): value is Test & {
    state: 'failed';
};
export declare function isPassingTest(value: unknown): value is Test & {
    state: 'passed';
};
export declare function isTestPassing(testResult: TestResult): boolean;
//# sourceMappingURL=reporterSchemas.d.ts.map