VitestLike

tcmts.cli.vitest.VitestLike · #agph4btw · type

export interface VitestLike {
  state: {
    getUnhandledErrors?(): unknown[];
    getFiles(): {
      filepath?: string;
      tasks: { name: string; result?: { state?: string; duration?: number; errors?: { message?: string; diff?: string }[] }; logs?: { content: string }[] }[];
      result?: { errors?: { message?: string }[] };
    }[];
  };
  close(): Promise<void>;
}

used by