# afterAll

`import { afterAll } from "destack:test";`

Register cleanup after all tests in the current suite.

```ds title="afterAll"
export function afterAll(body: (Context) => BodyResult, timeout?: Duration | undefined): void
```

[language/library/src/test/hook.ds:12:14](https://github.com/destack-sh/destack/blob/main/language/library/src/test/hook.ds#L12-L14)
