层级

  • DefaultReporter
    • default

构造函数

  • 参数

    • 可选options: DefaultReporterOptions

    返回 default

属性

ctx: Vitest
end: number
failedUnwatchedFiles: TestModule[]
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

  • 参数

    • test: TestCase

    返回 void

  • 参数

    • test: TestCase

    返回 void

  • 参数

    • module: TestModule

    返回 void

  • 参数

    • module: TestModule

    返回 void

  • 参数

    • file: TestModule

    返回 void

  • 参数

    • 可选trigger: string

    返回 void

  • 返回 void

  • 参数

    • specifications: readonly TestSpecification[]

    返回 void

  • 在测试套件及其钩子运行完成后调用。状态不能为 `pending`。

    参数

    • testSuite: TestSuite

    返回 void

  • 参数

    • log: UserConsoleLog
    • 可选taskState: "pending" | "skipped" | "passed" | "failed"

    返回 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
    • 可选taskState: "pending" | "skipped" | "passed" | "failed"

    返回 boolean

  • 参数

    • error: ErrorWithDiff

    返回 string

  • 参数

    • task: Task

    返回 string

  • 参数

    • _test: Task

    返回 string

  • 参数

    • test: Task
    • 可选separator: string

    返回 string

  • 参数

    • moduleState: TestModuleState
    • test: TestCase

    返回 void

  • 参数

    • testModule: TestModule

    返回 void

  • 参数

    • _suite: TestSuite

    返回 void