hideSkippedTests
- Type:
boolean
- Default:
false
- CLI:
--hideSkippedTests
Hide skipped tests logs.
import { defineConfig } from '@rstest/core';
export default defineConfig({
hideSkippedTests: true,
});
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)