hookTimeout
- Type:
number - Default:
10_000 - CLI:
--hookTimeout=10000
Default timeout of lifecycle hooks (beforeAll, afterAll, beforeEach, afterEach, onTestFinished, and onTestFailed) in milliseconds. Set to 0 to disable the timeout.
Rstest resolves the hook timeout in the following priority order:
- The
timeoutargument passed to an individual hook - File-level timeout set via
rs.setConfig({ hookTimeout }) --hookTimeoutCLI optionhookTimeoutin the configuration file- Default value of
10_000milliseconds