Skip to content

eps1lon/jest-async-inlinesnapshot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Async, custom, inline snapshot matcher in jest

Documents how to make custom inline snapshot matchers work.

Fix:

// Jest uses the stacktraces to find the callsite.
// For async stacktraces it'll point to the wrapped call
// i.e. every `toMatchSpeechInlineSnapshotAsync` will point to the same call triggering "Jest: Multiple inline snapshots for the same call are not supported."
this.error = new Error();

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published