[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:2233](https://github.com/evoluhq/evolu/blob/037c390af081e9944d616ff298a729515c5c5ab7/packages/common/src/Task.ts#L2233)

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:2233](https://github.com/evoluhq/evolu/blob/037c390af081e9944d616ff298a729515c5c5ab7/packages/common/src/Task.ts#L2233)

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:2248](https://github.com/evoluhq/evolu/blob/037c390af081e9944d616ff298a729515c5c5ab7/packages/common/src/Task.ts#L2248)

Clears all reported defects.

### getDefects

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

Defined in: [packages/common/src/Task.ts:2235](https://github.com/evoluhq/evolu/blob/037c390af081e9944d616ff298a729515c5c5ab7/packages/common/src/Task.ts#L2235)

Gets all reported defects without clearing the internal buffer.

### getDefectsSnapshot

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

Defined in: [packages/common/src/Task.ts:2245](https://github.com/evoluhq/evolu/blob/037c390af081e9944d616ff298a729515c5c5ab7/packages/common/src/Task.ts#L2245)

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:2238](https://github.com/evoluhq/evolu/blob/037c390af081e9944d616ff298a729515c5c5ab7/packages/common/src/Task.ts#L2238)

Waits for the next reported defect.