For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt, and this page is available as Markdown at /config/test/unstub-globals.md.
close
  • English
  • unstubGlobals

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

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

    CLI
    rstest.config.ts
    npx rstest --unstubGlobals