Visual Regression Testing for Front End Applications
npm install @mgrk/chameleon --save-dev
For use within a test:
import compare from '@mgrk/chameleon';
...
it('should match vr', async () => {
const options = {
testUrl: 'http://localhost:4200',
masterUrl: 'http://localhost:4201',
selector: 'img'
};
expect(await compare(options)).toBe(true);
});