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 Pageroot
Next Pageinclude

#name

  • Type: string
  • Default: rstest

The name of the test project.

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

export default defineConfig({
  name: 'node',
});

When you define multiple test projects via projects, it's recommended to give each project a unique name so that you can filter specific projects using the --project option.

If a project's name is not provided, Rstest will use the name field from the current project's package.json. If it does not exist, the folder name will be used instead.