mirror of
https://github.com/oven-sh/bun
synced 2026-02-18 06:41:50 +00:00
This implements support for Istanbul-style ignore comments in code coverage: - /* istanbul ignore next */ - ignores the next statement - /* istanbul ignore file */ - ignores the entire file - /* istanbul ignore if */ - ignores if branch (TODO) - /* istanbul ignore else */ - ignores else branch (TODO) - Support for both single-line (//) and multi-line (/* */) comments - Support for optional explanatory text after colon Changes: - Add CoverageIgnoreDirective structure in js_lexer.zig - Parse ignore comments during lexing - Add ignore directive parsing in ByteRangeMapping.compute() - Apply ignore logic in generateReportFromBlocks() - Add comprehensive test cases for different ignore patterns Fixes #7662 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>