close
  • English
  • hideSkippedTestFiles

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

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

    CLI
    rstest.config.ts
    npx rstest --hideSkippedTestFiles

    Example

    By default, Rstest displays logs for all test files.

     test/index.test.ts (1) 1ms
     Index > should add two numbers correctly (0ms)
     - test/all-skipped.test.ts (2) 1ms
    
     Test Files 1 passed | 1 skipped
          Tests 1 passed | 2 skipped (3)
       Duration 93ms (build 50ms, tests 43ms)

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

    The output will look like this:

     test/index.test.ts (1) 1ms
     Index > should add two numbers correctly (0ms)
    
     Test Files 1 passed | 1 skipped
          Tests 1 passed | 2 skipped (3)
       Duration 93ms (build 50ms, tests 43ms)