Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
expect.extend({
toMatchSnapshot() {
// TODO: init testFile, testTitle
const result = toMatchSnapshot(this.actual, testFile, testTitle);
expect.assert(result.pass, !result.pass ? result.report() : '');
return this;
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment