@recreatejs/jasmine-pixelmatch
Version:
HTML5 canvas visual regression tests for Jasmine using pixelmatch
12 lines (9 loc) • 322 B
JavaScript
import toVisuallyEqual from "./visually-equal-matcher";
import imageDataEquality from "./image-data-equality";
export { imgToImageData, loadImage, fetchImageData } from "./image-helpers";
beforeEach(function() {
jasmine.addMatchers({
toVisuallyEqual
});
jasmine.addCustomEqualityTester(imageDataEquality);
});