unstubGlobals

  • Type: boolean
  • Default: false
  • CLI: --unstubGlobals

Restores all global variables that were changed with rstest.stubGlobal before every test.

CLI
rstest.config.ts
import { defineConfig } from '@rstest/core';

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