[API reference](https://evolu.dev/docs/api-reference) › [@evolu/common](https://evolu.dev/docs/api-reference/common) › [Task](https://evolu.dev/docs/api-reference/common/Task) › TestReportDefect

Defined in: [packages/common/src/Task.ts:2203](https://github.com/evoluhq/evolu/blob/a18269a1b822c670b507c6a9b73b23eed32551fe/packages/common/src/Task.ts#L2203)

Test [ReportDefect](https://evolu.dev/docs/api-reference/common/Task/type-aliases/ReportDefect) that records reported defects.

## Extends

- [`ReportDefect`](https://evolu.dev/docs/api-reference/common/Task/type-aliases/ReportDefect)

```ts
TestReportDefect(reported: unknown): void;
```

Defined in: [packages/common/src/Task.ts:2203](https://github.com/evoluhq/evolu/blob/a18269a1b822c670b507c6a9b73b23eed32551fe/packages/common/src/Task.ts#L2203)

Test [ReportDefect](https://evolu.dev/docs/api-reference/common/Task/type-aliases/ReportDefect) that records reported defects.

## Properties

<a id="cleardefects"></a>

### clearDefects

```ts
readonly clearDefects: () => void;
```

Defined in: [packages/common/src/Task.ts:2218](https://github.com/evoluhq/evolu/blob/a18269a1b822c670b507c6a9b73b23eed32551fe/packages/common/src/Task.ts#L2218)

Clears all reported defects.

### getDefects

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

Defined in: [packages/common/src/Task.ts:2205](https://github.com/evoluhq/evolu/blob/a18269a1b822c670b507c6a9b73b23eed32551fe/packages/common/src/Task.ts#L2205)

Gets all reported defects without clearing the internal buffer.

### getDefectsSnapshot

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

Defined in: [packages/common/src/Task.ts:2215](https://github.com/evoluhq/evolu/blob/a18269a1b822c670b507c6a9b73b23eed32551fe/packages/common/src/Task.ts#L2215)

Gets all reported defects and clears the internal buffer.

Destructive, like [TestConsole.getEntriesSnapshot](https://evolu.dev/docs/api-reference/common/Console/interfaces/TestConsole#getentriessnapshot).

### next

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

Defined in: [packages/common/src/Task.ts:2208](https://github.com/evoluhq/evolu/blob/a18269a1b822c670b507c6a9b73b23eed32551fe/packages/common/src/Task.ts#L2208)

Waits for the next reported defect.