close
logo
Rstest
指南
配置
API
English
简体中文
指南
配置
API
English
简体中文
logo
Rstest
Overview

Test Configurations

root
name
include
exclude
setupFiles
projects
update
globals
passWithNoTests
includeSource
testNamePattern
env
retry
testTimeout
hookTimeout
maxConcurrency
pool
isolate
testEnvironment
clearMocks
resetMocks
restoreMocks
unstubEnvs
unstubGlobals
coverage
reporters
hideSkippedTests
slowTestThreshold
snapshotFormat
resolveSnapshotPath
printConsoleTrace
onConsoleLog
disableConsoleIntercept

Build Configurations

plugins
source
output
resolve
tools
dev
performance
📝 在 GitHub 上编辑此页
上一页testTimeout
下一页maxConcurrency

#hookTimeout

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

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

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

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