vitest
built-in 0.0% Savings
0 Commands
0 Tokens saved
2 Tests
Install
Safety checks passed
Filter definition
command = "vitest"
strip_ansi = true
skip = [
"^\\s*$",
"^> ",
"^\\s*npm (warn|notice|WARN|verbose|info|timing|error|ERR)",
"^\\s*WARN\\s",
"^\\s*DEV\\s",
"^\\s*RUN\\s",
"^stdout \\|",
"^\\s*Duration",
"^\\s*Start at",
"^\\s*Snapshots",
]
[on_success]
tail = 15
[on_failure]
tail = 30
Examples
vitest failure shows error details, strips npm noise
~174 tokens → ~97 tokens
(44% saved)
Raw output
> vitest-test-project@1.0.0 test
> vitest run
DEV v1.6.0 /home/user/myapp
RUN default
❯ src/utils.test.ts (3 tests | 1 failed) 5ms
× add > handles negative numbers
✓ src/app.test.ts (2 tests) 12ms
⎯⎯⎯⎯ Failed Tests ⎯⎯⎯⎯
FAIL src/utils.test.ts > add > handles negative numbers
AssertionError: expected -1 to be 1
- Expected: 1
+ Received: -1
❯ src/utils.test.ts:10:18
Test Files 1 failed | 1 passed (2)
Tests 1 failed | 4 passed (5)
Start at 14:30:00
Duration 120ms
npm verbose cli /usr/bin/node /usr/lib/node_modules/npm/bin/npm-cli.js
npm info using npm@10.9.2
npm verbose cwd /home/user/myapp
npm verbose exit 1
npm verbose code 1 Filtered output
❯ src/utils.test.ts (3 tests | 1 failed) 5ms
× add > handles negative numbers
✓ src/app.test.ts (2 tests) 12ms
⎯⎯⎯⎯ Failed Tests ⎯⎯⎯⎯
FAIL src/utils.test.ts > add > handles negative numbers
AssertionError: expected -1 to be 1
- Expected: 1
+ Received: -1
❯ src/utils.test.ts:10:18
Test Files 1 failed | 1 passed (2)
Tests 1 failed | 4 passed (5) vitest success strips noise, keeps test results
~167 tokens → ~35 tokens
(79% saved)
Raw output
> vitest-test-project@1.0.0 test
> vitest run
DEV v1.6.0 /home/user/myapp
RUN default
stdout | src/utils.test.ts > add > adds two numbers
debug output here
✓ src/utils.test.ts (3 tests) 5ms
✓ src/app.test.ts (2 tests) 12ms
Test Files 2 passed (2)
Tests 5 passed (5)
Start at 14:30:00
Duration 120ms
npm verbose cli /usr/bin/node /usr/lib/node_modules/npm/bin/npm-cli.js
npm info using npm@10.9.2
npm info using node@v23.9.0
npm verbose title npm test
npm verbose argv "test"
npm verbose logfile logs-max:10 dir:/home/user/.npm/_logs/2026-02-21-
npm verbose cwd /home/user/myapp
npm verbose os Linux 6.1.0
npm verbose exit 0
npm info ok Filtered output
debug output here
✓ src/utils.test.ts (3 tests) 5ms
✓ src/app.test.ts (2 tests) 12ms
Test Files 2 passed (2)
Tests 5 passed (5) Warning: Community filters are third-party code. Review the filter definition above before installing it in production environments.Browse all filters