Skip to content

API Reference / @gtkx/testing / cleanup

Function: cleanup() ​

cleanup(): Promise<void>

Defined in: packages/testing/src/render.tsx:302

Unmounts every active render, quits the applications those renders started, and runs all registered cleanup callbacks, resetting the screen, the clipboard and the input the default userEvent still holds. Called automatically after each test.

Returns ​

Promise<void>