Files
bun.sh/test/cli
Claude Bot 0dca0ee6a9 Add --resolve-extensions flag and bunfig.toml property for custom test file patterns
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>
2025-11-25 01:29:05 +00:00
..
2025-10-11 08:23:25 -07:00