-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: Cannot show diff when .toMatchInlineSnapshot
throws exception
#13180
Comments
Huh, this is a weird one 😅 It's like the error is |
@liuxingbaoyu the issue is in I tried applying https://github.com/prettier/prettier/pull/13355/files#diff-7ae45ad102eab3b6d7e7896acd08c427a9b25b346470d7bc6507b6481575d519R129 which made no difference |
@nicolo-ribaudo @liuxingbaoyu this is actually not new with jest 29 - seems like This diff on babel's diff --git i/jest.config.js w/jest.config.js
index d499a021de..8c9108c56f 100644
--- i/jest.config.js
+++ w/jest.config.js
@@ -70,4 +70,5 @@ module.exports = {
// package should be declared explicitly in the package.json
// Yarn will generate correct file links so that Jest can resolve correctly
moduleNameMapper: null,
+ snapshotFormat: { escapeString: false, printBasicPrototype: false },
}; The |
Yeah, I tried without
, is this expected? |
Ah, good catch |
Ah, just saw your latest reply, and yes, I'm also guessing that the snapshot change might be related to |
@liuxingbaoyu fixed the diffing issue in https://github.com/facebook/jest/releases/tag/v29.0.1. The weird error is in |
Thanks for the quick fix! I will continue to investigate |
Thanks for noticing! 😀 Very confusing diff for users upgrading |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Version
29.0
Steps to reproduce
I know this is overly complicated to reproduce, I'm still investigating, just opened an issue first in case anyone can think of what could be the reason for this, will update if I find anything new!😃
Expected behavior
Differences are displayed normally.
Actual behavior
Additional context
No response
Environment
The text was updated successfully, but these errors were encountered: