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 Pageoutput
Next Pagetools

#resolve

Options for module resolution.

#resolve.aliasStrategy resolve.aliasStrategyresolve.aliasStrategy

Control the priority between the resolve.alias option and the paths option in tsconfig.json.

#resolve.alias resolve.aliasresolve.alias

Set the alias for the module path, which is used to simplify the import path or redirect the module reference, similar to the resolve.alias config of Rspack.

For TypeScript projects, you only need to configure compilerOptions.paths in the tsconfig.json file. Rstest will automatically recognize it, so there is no need to configure the resolve.alias option separately.

#resolve.dedupe resolve.deduperesolve.dedupe

Force Rstest to resolve the specified packages from project root, which is useful for deduplicating packages and reducing the bundle size.

#resolve.extensions resolve.extensionsresolve.extensions

Automatically resolve file extensions when importing modules. This means you can import files without explicitly writing their extensions.