jaredpalmer / cypress-image-snapshot

Catch visual regressions in Cypress
MIT License
888 stars 160 forks source link

The task 'Matching image snapshot' was not handled in the plugins file #131

Closed melibe23 closed 4 years ago

melibe23 commented 4 years ago

I have a silly test, and I get this error

cy.task('Matching image snapshot') failed with the following error:

The task 'Matching image snapshot' was not handled in the plugins file. The following tasks are registered: ctrLogMessages

This is my test

describe("test", () => {
  it("should be publicly accessible", () => {
    cy.visit("https://www.google.com/");
    // match element snapshot
    cy.get("[id=lga]").matchImageSnapshot();
  });
});
melibe23 commented 4 years ago

Was an issue in my index file, I had the following duplicated

// Terminal report module.exports = on => { require("cypress-terminal-report").installPlugin(on); };