-
-
Notifications
You must be signed in to change notification settings - Fork 35.5k
Add support for inline snapshots tests #59231
Copy link
Copy link
Open
Labels
feature requestIssues that request new features to be added to Node.js.Issues that request new features to be added to Node.js.never-staleMark issue so that it is never considered staleMark issue so that it is never considered stale
Metadata
Metadata
Assignees
Labels
feature requestIssues that request new features to be added to Node.js.Issues that request new features to be added to Node.js.never-staleMark issue so that it is never considered staleMark issue so that it is never considered stale
Type
Projects
Status
Awaiting Triage
What is the problem this feature will solve?
Jest inline shapshots are like file-based snapshots but much more casual. I love using them for small snapshots and I think they'd be a great improvement to Node.js. From Jest's docs, they look like:
What is the feature you are proposing to solve the problem?
The Node.js version might look like:
What alternatives have you considered?
I use file snapshots or
assert.deepEqual().