-c, --config <config> | Specify the configuration file, can be a relative or absolute path, see Specify config file |
--config-loader <loader> | Specify the config loader, can be jiti or native, see Rsbuild - Specify config loader |
-r, --root <root> | Specify the project root directory, see root |
--globals | Provide global APIs, see globals |
--isolate | Run tests in an isolated environment, see isolate |
--reporter <reporter> | Specify the test reporter, see reporters |
--exclude <exclude> | Exclude files from test, see exclude |
-u, --update | Update snapshot files, see update |
--coverage | Enable code coverage collection, see coverage |
--passWithNoTests | Allows the test suite to pass when no files are found, see passWithNoTests |
--printConsoleTrace | Print console traces when calling any console method, see printConsoleTrace |
--project <name> | Only run tests for the specified project, see Filter by project name |
--disableConsoleIntercept | Disable console intercept, see disableConsoleIntercept |
--slowTestThreshold <value> | The number of milliseconds after which a test or suite is considered slow, see slowTestThreshold |
-t, --testNamePattern <value> | Run only tests with a name that matches the regex, see testNamePattern |
--testEnvironment <name> | The environment that will be used for testing, see testEnvironment |
--testTimeout <value> | Timeout of a test in milliseconds, see testTimeout |
--hookTimeout <value> | Timeout of hook in milliseconds, see hookTimeout |
--retry <retry> | Number of times to retry a test if it fails, see retry |
--bail [number] | Abort the test run after the specified number of test failures, see bail |
--browser, --browser.enabled | Run tests in Browser Mode, see browser |
--browser.name <name> | Browser to use: chromium, firefox, webkit (default: chromium), see browser |
--browser.headless | Run browser in headless mode (default: true in CI), see browser |
--browser.port <port> | Port for the Browser Mode dev server, see browser |
--browser.strictPort | Exit if the specified port is already in use, see browser |
--maxConcurrency <value> | Maximum number of concurrent tests, see maxConcurrency |
--clearMocks | Automatically clear mock calls, instances, contexts and results before every test, see clearMocks |
--resetMocks | Automatically reset mock state before every test, see resetMocks |
--restoreMocks | Automatically restore mock state and implementation before every test, see restoreMocks |
--unstubGlobals | Restores all global variables that were changed with rstest.stubGlobal before every test, see unstubGlobals |
--unstubEnvs | Restores all process.env values that were changed with rstest.stubEnv before every test, see unstubEnvs |
--include <pattern> | Specify test file matching pattern, see include |
--includeSource <pattern> | Specify in-source testing file matching pattern, see includeSource |
--logHeapUsage | Print heap usage for each test, see logHeapUsage |
--hideSkippedTests | Do not display skipped test logs, see hideSkippedTests |
--hideSkippedTestFiles | Do not display skipped test file logs, see hideSkippedTestFiles |
--chaiConfig <config> | Customize Chai configuration, see chaiConfig |
--env <key=value> | Set environment variables, see env |
--pool <type> | Shorthand for --pool.type, see pool |
--pool.type <type> | Specify the test pool type, see pool |
--pool.maxWorkers <value> | Maximum number or percentage of workers, see pool |
--pool.minWorkers <value> | Minimum number or percentage of workers, see pool |
--pool.execArgv <arg> | Additional Node.js execArgv for worker processes (repeatable), see pool |
--setupFiles <files> | Specify setup files list, see setupFiles |
--snapshotFormat <options> | Customize snapshot format, see snapshotFormat |
--resolveSnapshotPath | Customize snapshot path resolution, see resolveSnapshotPath |
--onConsoleLog <handler> | Handle console logs, see onConsoleLog |
--name <name> | Set test suite name, see name |
--projects <projects> | Configure multi-project testing, see projects |
-h, --help | Display help for command |
-v, --version | Display version |