UNPKG

@quenty/cli-output-helpers

Version:

Helpers to generate Nevermore package and game templates

30 lines 1.24 kB
import { BaseReporter } from '../reporter.js'; import { type IStateTracker } from '../state/state-tracker.js'; import { type GithubCommentTableConfig } from './formatting.js'; /** * Writes batch results to the GitHub Actions job summary. * * Appends a markdown table to the file at $GITHUB_STEP_SUMMARY, which * GitHub renders on the workflow run summary page. Unlike the PR comment * reporter, this writes only at completion (no throttled live updates). */ export declare class GithubJobSummaryReporter extends BaseReporter { private _state; private _config; private _concurrency; private _error; private _noTestsMessage; constructor(state: IStateTracker | undefined, config: GithubCommentTableConfig, concurrency?: number); /** * Set an error message to write instead of results. * When set, stopAsync() writes a failure summary rather than a results table. */ setError(error: string): void; /** * Set an informational message when no tests were discovered. * When set, stopAsync() writes a neutral summary rather than a results table. */ setNoTestsRun(message: string): void; stopAsync(): Promise<void>; } //# sourceMappingURL=job-summary-reporter.d.ts.map