> For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt.

# unstubGlobals

- **Type:** `boolean`
- **Default:** `false`
- **CLI:** `--unstubGlobals`

Restores all global variables that were changed with [rs.stubGlobal](/api/runtime-api/rstest/utilities.md#rsstubglobal) before every test.


**CLI**

```bash
npx rstest --unstubGlobals
```


**rstest.config.ts**

```ts
import { defineConfig } from '@rstest/core';

export default defineConfig({
  unstubGlobals: true,
});
```

