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/hook-timeout.md.
close
  • English
  • hookTimeout

    • Type: number
    • Default: 10_000
    • CLI: --hookTimeout=10000

    Default timeout of hook in milliseconds. 0 will disable the timeout.

    CLI
    rstest.config.ts
    npx rstest --hookTimeout=10000

    Rstest determines the hook timeout based on the following priority order:

    1. timeout configuration in each test case
    2. Timeout configured in the test file via rs.setConfig({ hookTimeout })
    3. --hookTimeout option in CLI
    4. hookTimeout option in the configuration file
    5. Default value of 10_000 milliseconds