Skip to content

v1.1.0: feat: Provide `replaceNonTextChars`

Pre-release
Pre-release
Compare
Choose a tag to compare
@karfau karfau released this 11 Sep 06:59
· 255 commits to master since this release
Some xml documents (purposely) contain characters that are not visible and make it hard to reason about a test result.
Those characters also cause git to think a file is binary,
when the test output is being committed (e.g. in a jest snapshot).
By replacing them with a visual replacement using `codePointAt` (e.g. replacing NUL/`�` with `{!0!}`,
it's makes those more obvious.