Interface WebSocketHandlers
Methods
getConfig
- getConfig(): ResolvedConfig
getCountOfFailedTests
- getCountOfFailedTests(): number
Returns number
getFiles
- getFiles(): File[]
Returns File[]
getModuleGraph
- getModuleGraph(id): Promise<ModuleGraphData>
getPaths
- getPaths(): string[]
Returns string[]
getProvidedContext
- getProvidedContext(): ProvidedContext
getTransformResult
- getTransformResult(id): Promise<undefined | TransformResultWithSource>
onAfterSuiteRun
- onAfterSuiteRun(meta): void
Returns void
onCancel
- onCancel(reason): void
Returns void
onCollected
- onCollected(files?): Promise<void>
onDone
- onDone(name): void
Returns void
onTaskUpdate
- onTaskUpdate(packs): void
Returns void
onUnhandledError
- onUnhandledError(error, type): Promise<void>
Parameters
error: unknown
type: string
readSnapshotFile
- readSnapshotFile(id): Promise<null | string>
Returns Promise<null | string>
readTestFile
- readTestFile(id): Promise<null | string>
Returns Promise<null | string>
removeSnapshotFile
- removeSnapshotFile(id): Promise<void>
rerun
- rerun(files): Promise<void>
resolveSnapshotPath
- resolveSnapshotPath(testPath): string
Returns string
resolveSnapshotRawPath
- resolveSnapshotRawPath(testPath, rawPath): string
Parameters
testPath: string
rawPath: string
Returns string
saveSnapshotFile
- saveSnapshotFile(id, content): Promise<void>
Parameters
id: string
content: string
saveTestFile
- saveTestFile(id, content): Promise<void>
Parameters
id: string
content: string
sendLog
- sendLog(log): void
Returns void
snapshotSaved
- snapshotSaved(snapshot): void
Returns void
updateSnapshot
- updateSnapshot(file?): Promise<void>