Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork6.6k
feat: Show non-printable control characters to diff output#15696
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Conversation
netlifybot commentedJun 23, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
✅ Deploy Preview forjestjs ready!Builtwithout sensitive environment variables
To edit notification comments on pull requests, go to yourNetlify project configuration. |
babel-jestbabel-plugin-jest-hoistbabel-preset-jestcreate-jest@jest/diff-sequencesexpect@jest/expect-utilsjestjest-changed-filesjest-circusjest-clijest-config@jest/console@jest/core@jest/create-cache-key-functionjest-diffjest-docblockjest-each@jest/environmentjest-environment-jsdom@jest/environment-jsdom-abstractjest-environment-node@jest/expect@jest/fake-timers@jest/get-type@jest/globalsjest-haste-mapjest-jasmine2jest-leak-detectorjest-matcher-utilsjest-message-utiljest-mock@jest/patternjest-phabricatorjest-regex-util@jest/reportersjest-resolvejest-resolve-dependenciesjest-runnerjest-runtime@jest/schemasjest-snapshot@jest/snapshot-utils@jest/source-map@jest/test-result@jest/test-sequencer@jest/transform@jest/typesjest-utiljest-validatejest-watcherjest-workerpretty-formatcommit: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Thank you for the fix!
2c2586d intojestjs:mainUh oh!
There was an error while loading.Please reload this page.
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Summary
resolve#15506
Added escape functionality to jest-diff that converts non-printable control characters into visible escaped sequences in string diffs:
ASCII control characters (0x00-0x1F, 0x7F) → \x00, \x01, etc.
C1 control characters (0x80-0x9F) → \x80, \x81, etc.
Common control chars get readable names: \b, \f, \v
Test plan
unit test