Skip to content

Instantly share code, notes, and snippets.

@alexbeletsky
Created January 26, 2018 10:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alexbeletsky/c8f5b82dd5e66ace0ab46d06e7ba5cf6 to your computer and use it in GitHub Desktop.
Save alexbeletsky/c8f5b82dd5e66ace0ab46d06e7ba5cf6 to your computer and use it in GitHub Desktop.
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