test(i18n): check display-only error messages in one source scan
PR
2h ago+1+1+0123456789-7-7-0123456789
What & why
The translation audit read every source file twice, once for direct uses and once for aliases. Run both checks on the same contents. This preserves the file filters, patterns and line diagnostics while avoiding the second traversal that contributed to a macOS timeout.
How I tested it
- On this branch, macOS arm64 with Bun 1.4.3 and TERM=dumb: from packages/i18n,
bun test test/display-only.test.ts— 10 pass, 0 fail. - This patch was also part of the combined macOS verification for #9625: all 30 repository test tasks passed in one uncached run, with default workers and timeouts. Repo-wide lint and typecheck passed on that combined checkout.
Checklist
- Conventional PR title
- Lint and typecheck passed on the combined verification checkout
- Allow maintainer edits
- Signed CLA
Summary by cubic
Combines the direct-use and alias checks in the i18n display-only test into a single file scan, removing the second traversal that contributed to a macOS timeout while preserving file filters and line diagnostics.
Summary by CodeRabbit
- Tests
- Simplified an existing check for matching strings assigned from error messages.