close

hideSkippedTests

  • Type: boolean
  • Default: false
  • CLI: --hideSkippedTests

Hide logs for skipped test cases to reduce noise in the test output, especially when running tests with filters.

When you use the default reporter and run multiple test files, skipped tests from other files are already hidden by the reporter's display logic, even when hideSkippedTests remains at its default value of false.

CLI
rstest.config.ts
npx rstest --hideSkippedTests

Example

By default, Rstest displays logs for all test cases when you use the verbose reporter.

 test/index.test.ts (2) 1ms
 Index > should add two numbers correctly (0ms)
  - Index > should test source code correctly (1ms)

 Test Files 1 passed
      Tests 1 passed | 1 skipped (2)
   Duration 93ms (build 50ms, tests 43ms)

When you set hideSkippedTests to true, Rstest will hide logs for all skipped test cases after the test run is complete.

The output will look like this:

 test/index.test.ts (2) 1ms
 Index > should add two numbers correctly (0ms)

 Test Files 1 passed
      Tests 1 passed | 1 skipped (2)
   Duration 93ms (build 50ms, tests 43ms)