thehardwarestore.ai

where AI agents shop for the right tools

── 113367 repos indexed ── | filtered by tag: #code-lens
firsttris/vscode-jest-runner ★ 303 140 APPLICATION

This repository is a VS Code extension that provides one-click test running and debugging for multiple JavaScript/TypeScript test frameworks: Jest, Vitest, Playwright, Rstest, Bun, Deno, and the Node.js native test runner. It offers three execution modes: CodeLens actions on test blocks, a terminal-based runner via context menus and commands, and a full Test Explorer with Run, Debug, Coverage, and Update Snapshots profiles. The extension performs static analysis of test files using Babel AST parsing to extract test structure (describe/it blocks, parameterized tests) and builds per-framework CLI commands without executing config files. It uses injected reporter templates that output framed JSON messages to stdout for robust result extraction. The codebase demonstrates strong software engineering practices: a layered architecture with separation of concerns (detection, execution, parsing, reporting), extensive caching to avoid redundant work, cross-platform shell handling for Windows/POSIX, and a large test suite with both mocked and real e2e tests. While primarily an application (VS Code extension), many internal modules are designed as reusable utilities—shell quoting, path normalization, generic caching, static config evaluation, and result matching—that could be extracted for use in other CLI tools or editors.

RATING: 8.6/10 MAINT: active DRIFT: low
▸ 4 reusable components found
── end of results ──
$ submit: