Replies: 1 comment
-
AVA's snapshots are not text based, so I think this would become quite awkward. We'd have to put an additional base64-encoded segment in there. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Jest has inline snapshots. I quite like them for testing strings, such as error messages and CLI output.
expect(errorMessage).toMatchInlineSnapshot()
. No fiddly copy-pasting and manual typing of the expected value.()
.Here’s an example from a project I’m working on:
Has anything like this ever been discussed in AVA? I tried to search but couldn’t find anything. Is this something there would be interest in?
I like this feature of Jest very much, but I also like the leanness of AVA!
Two random references (not sure if they help at all):
jest-snapshot
package): https://github.com/facebook/jest/tree/master/packages/jest-snapshotBeta Was this translation helpful? Give feedback.
All reactions