TEST006infoPro

e2e-console-capture

E2E tests should capture console errors to catch silent JavaScript failures.

Applies to: TypeScript

Why this matters

Playwright tests can pass even when the app throws JavaScript errors, because UI assertions don't check the console. Without capturing console.error and failed assertions, you miss: unhandled exceptions, React errors, network failures, and application bugs that don't cause visible UI changes. Set up automatic console capture in a shared fixture to catch these issues early.

Catch it before it ships

pip install stablestack # or: npx stablestackstablestack # scans your project, TEST006 includedstablestack explain TEST006

TEST006 is part of the Pro rule set. See pricing — the free tier ships 24 checks with no signup.

False positive in your codebase? Suppress a single line with # noqa: TEST006