Em-dash test passes but covers only a fifth of the codebase's occurrences
A developer at Munchable found that a unit test enforcing a no-em-dash style rule passes, yet checks just five directories of the repository. The test scans 90 of 454 occurrences in TypeScript source, and the rest sit in other workspaces, comments, or markdown docs. Comments are exempt by design, and the single string-literal occurrence is a server log line outside the test's scope. The author argues the directory list defines where the rule applies, not where visible copy actually lives. Shared packages and the mobile app are currently unenforced, though they happen to be clean today.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in