import * as Buildkite from "@skuba-lib/api/buildkite"; import * as Git from "@skuba-lib/api/git"; import * as GitHub from "@skuba-lib/api/github"; import * as Net from "@skuba-lib/api/net"; import * as Cdk from "@skuba-lib/api/cdk"; import * as Rolldown from "@skuba-lib/api/rolldown"; import { ViteUserConfig } from "vitest/config"; import { Reporter, SerializedError, TestModule, TestRunEndReason, Vitest } from "vitest/node"; //#region src/api/vitest/reporters/github/index.d.ts /** * Reports Vitest results to GitHub as a check run per project. * * Test failures are surfaced as annotations against the offending lines, which * appear in the **Checks** and **Files changed** tabs of a pull request. * * This is registered unconditionally by `Vitest.mergePreset` and does nothing * unless it is running in CI with a GitHub API token on the environment, so * local test runs are unaffected. */ declare class GitHubReporter implements Pick { private ctx; onInit(ctx: Vitest): void; onTestRunEnd(testModules: readonly TestModule[], unhandledErrors: readonly SerializedError[], reason: TestRunEndReason): Promise; } declare namespace index_d_exports { export { GitHubReporter, defaults, mergePreset }; } declare const defaults: { coverage: { include: string[]; exclude: string[]; }; exclude: string[]; reporters: (string | GitHubReporter)[]; }; declare const mergePreset: (config: T) => T; //#endregion //#region src/index.d.ts declare global { namespace WebAssembly { interface Module {} } } //#endregion export { Buildkite, Cdk, Git, GitHub, Net, Rolldown, index_d_exports as Vitest };