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