close
logo
Rstest
Guide
Config
API
English
简体中文
Guide
Config
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
📝 Edit this page on GitHub
Previous PagehideSkippedTests
Next PagesnapshotFormat

#slowTestThreshold

  • Type: number
  • Default: 300
  • CLI: --slowTestThreshold=300

The number of milliseconds after which a test or suite is considered slow and reported as such in the results.

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

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