# codes

function in `@dioramajs/effects/testing`

```ts
import { codes } from '@dioramajs/effects/testing'
```

The codes of reported errors, the cause first.

```ts
function codes(errors: readonly ErrorReport[]): string[]
```

| Parameter | Type | Description |
| --- | --- | --- |
| `errors` | `readonly ErrorReport[]` |  |

Defined in [packages/effects/src/testing/gpu.ts](https://github.com/MasterKurosava/diorama/blob/main/packages/effects/src/testing/gpu.ts#L352).
