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 上编辑此页
上一页hideSkippedTests
下一页snapshotFormat

#slowTestThreshold

  • 类型: number
  • 默认值: 300
  • CLI: --slowTestThreshold=300

测试运行时间超过指定毫秒数时,被认为是缓慢的并在报告结果中显示。

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

export default defineConfig({
  slowTestThreshold: 300,
});