jest
built-in 0.0% Savings
0 Commands
0 Tokens saved
2 Tests
Install
Safety checks passed
Filter definition
command = "jest"
description = "Strip noise; show test suite summary and failure details"
strip_ansi = true
skip = [
"^\\s*$",
"^> ",
"^\\s*npm (warn|notice|WARN|verbose|info|timing|error|ERR)",
"^\\s*WARN\\s",
"^\\s*console\\.log",
"^\\s*at Object",
]
[on_success]
tail = 15
[on_failure]
tail = 30
Examples
jest failure shows error details, strips npm noise
~150 tokens → ~96 tokens
(36% saved)
Raw output
> jest-test-project@1.0.0 test
> jest
FAIL src/utils.test.ts
● add › handles negative numbers
expect(received).toBe(expected)
Expected: 1
Received: -1
8 | it('handles negative numbers', () => {
9 | expect(add(-1, 0)).toBe(1);
10 | });
PASS src/app.test.ts
Test Suites: 1 failed, 1 passed, 2 total
Tests: 1 failed, 4 passed, 5 total
Snapshots: 0 total
Time: 1.456 s
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
FAIL src/utils.test.ts
● add › handles negative numbers
expect(received).toBe(expected)
Expected: 1
Received: -1
8 | it('handles negative numbers', () => {
9 | expect(add(-1, 0)).toBe(1);
10 | });
PASS src/app.test.ts
Test Suites: 1 failed, 1 passed, 2 total
Tests: 1 failed, 4 passed, 5 total
Snapshots: 0 total
Time: 1.456 s jest success shows test summary, strips npm noise
~94 tokens → ~36 tokens
(62% saved)
Raw output
> jest-test-project@1.0.0 test > jest PASS src/utils.test.ts PASS src/app.test.ts Test Suites: 2 passed, 2 total Tests: 5 passed, 5 total Snapshots: 0 total Time: 1.234 s 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 cwd /home/user/myapp npm verbose exit 0 npm info ok
Filtered output
PASS src/utils.test.ts PASS src/app.test.ts Test Suites: 2 passed, 2 total Tests: 5 passed, 5 total Snapshots: 0 total Time: 1.234 s
Warning: Community filters are third-party code. Review the filter definition above before installing it in production environments.Browse all filters