hookTimeout

  • 类型: number
  • 默认值: 10_000
  • CLI: --hookTimeout=10000

单个测试 hook 的超时时间(毫秒)。设置为 0 禁用超时。

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

export default defineConfig({
  hookTimeout: 10000,
});