继承关系

  • DefaultReporter
    • 默认

构造函数

  • 参数

    • 可选options: DefaultReporterOptions

    返回 default

属性

ctx: Vitest
end: number
failedUnwatchedFiles: Task[]
isTTY: boolean
renderSucceed: boolean
start: number
watchFilters?: string[]
verbose: boolean

方法

  • 参数

    • ...messages: any

    返回 void

  • 参数

    • ...messages: any

    返回 void

  • 参数

    • files: File[]
    • errors: unknown[]

    返回 Promise<void>

  • 参数

    • hook: ReportedHookContext

    返回 void

  • 参数

    • hook: ReportedHookContext

    返回 void

  • 参数

    • ctx: Vitest

    返回 void

  • 参数

    • 可选paths: string[]

    返回 void

  • 参数

    • 可选reason: string

    返回 void

  • 参数

    • packs: TaskResultPack[]

    返回 void

    请使用 onTestModuleQueued, onTestModuleStart, onTestModuleEnd, onTestCaseReady, onTestCaseResult 代替

  • 参数

    • test: TestCase

    返回 void

  • 参数

    • test: TestCase

    返回 void

  • 参数

    • module: TestModule

    返回 void

  • 参数

    • module: TestModule

    返回 void

  • 参数

    • file: TestModule

    返回 void

  • 参数

    • 可选trigger: string

    返回 void

  • 返回 void

  • 参数

    • specifications: readonly TestSpecification[]

    返回 void

  • 参数

    • log: UserConsoleLog

    返回 void

  • 参数

    • files: string[]
    • 可选trigger: string

    返回 void

  • 参数

    • 可选files: File[]
    • 可选errors: unknown[]

    返回 void

  • 参数

    • path: string

    返回 string

  • 参数

    • files: File[]

    返回 void

  • 参数

    • files: File[]
    • errors: unknown[]

    返回 void

  • 参数

    • files: File[]
    • errors: unknown[]

    返回 void

  • 参数

    • log: UserConsoleLog

    返回 boolean

  • 参数

    • error: ErrorWithDiff

    返回 string

  • 参数

    • _test: Task

    返回 string

  • 参数

    • test: Task
    • 可选separator: string

    返回 string

  • 参数

    • _task: Task

    返回 void

  • onTaskUpdate 中使用单个 Task 调用的回调

    参数

    • task: Task

    返回 void