API reference@evolu/commonTask › TestReportDefect

Defined in: packages/common/src/Task.ts:2203

Test ReportDefect that records reported defects.

Extends

TestReportDefect(reported: unknown): void;

Defined in: packages/common/src/Task.ts:2203

Test ReportDefect that records reported defects.

Properties

clearDefects

readonly clearDefects: () => void;

Defined in: packages/common/src/Task.ts:2218

Clears all reported defects.

getDefects

readonly getDefects: () => readonly unknown[];

Defined in: packages/common/src/Task.ts:2205

Gets all reported defects without clearing the internal buffer.

getDefectsSnapshot

readonly getDefectsSnapshot: () => readonly unknown[];

Defined in: packages/common/src/Task.ts:2215

Gets all reported defects and clears the internal buffer.

Destructive, like TestConsole.getEntriesSnapshot.

next

readonly next: () => Promise<unknown>;

Defined in: packages/common/src/Task.ts:2208

Waits for the next reported defect.