cloudflare/kumo

Public

mirrored fromhttps://github.com/cloudflare/kumoAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
ab273fe184fe56ca777f342fa4f1912f726563a8

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

ci/reporters/visual-regression.ts

22lines · modepreview

import type { CIContext, ReportItem, Reporter } from "./types";

export const visualRegressionReporter: Reporter = {
  id: "visual-regression",
  name: "Visual Regression",

  async collect(context: CIContext): Promise<ReportItem | null> {
    const { visualRegressionReport } = context;

    if (!visualRegressionReport) {
      return null;
    }

    return {
      id: "visual-regression",
      title: "Visual Regression",
      priority: 25,
      content: visualRegressionReport,
      success: true,
    };
  },
};