test: add comprehensive tests for namespace matching and core utilities by mahmoodhamdi · Pull Request #1025 · debug-js/debug

@mahmoodhamdi

Add 23 new tests covering previously untested functionality:

- Wildcard namespace matching (simple, middle, multiple wildcards)
- Exclusion patterns (single, wildcard, precedence over names)
- Multiple namespace delimiters (commas, spaces, whitespace trimming)
- enabled() function (empty state, exact match, wildcard, skip)
- coerce() function (Error with stack, Error without stack, non-Error)
- selectColor() consistency and color pool membership
- Format string handling (%% escape, non-string args, custom formatters)