mirror of
https://github.com/oven-sh/bun
synced 2026-02-17 22:32:06 +00:00
This change allows users to customize which file name patterns are recognized as test files, providing flexibility for projects with different naming conventions. Features: - CLI flag: --resolve-extensions <STR>... (can specify multiple) - bunfig.toml: [test] resolveExtensions = ".check" or [".check", ".verify"] - CLI flag takes precedence over bunfig.toml configuration - Dynamic error messages show configured extensions when no tests found - Works with all JavaScript/TypeScript file extensions (.ts, .tsx, .js, .jsx, etc.) Default behavior (unchanged): - .test, _test, .spec, _spec suffixes continue to work when no custom config Implementation: - Modified Scanner.zig to accept custom test name suffixes - Added resolve_extensions field to TestOptions in cli.zig - Added CLI argument parsing in Arguments.zig - Added bunfig.toml parsing in bunfig.zig with CLI override logic - Updated error messages in test_command.zig to show custom extensions - Added comprehensive test suite covering CLI, bunfig, and override scenarios 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>