jaredpalmer / cypress-image-snapshot

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

--env and --reporter with nx #197

Open yjcyun opened 3 years ago

yjcyun commented 3 years ago

Hello,

I'm using @nrwl/react along with cypress-image-snapshot and having trouble executing the command --reporter cypress-image-snapshot/reporter.

When I run --reporter cypress-image-snapshot/reporter, it looks for the file node_modules/cypress-image-snapshot/reporter within the project-e2e file. But because I'm using nx, the node_modules folder is in the root directory not in project-e2e. How can I make these two commands work with nrwl? Any help would be greatly appreciated.

The folder structure looks like this for better clarity: project-root/apps/project (frontend) project-root/apps/project-e2e (cypress e2e) project-root/node_modules

hassanzohaib commented 2 years ago

@yjcyun Does --reporter cypress-image-snapshot/reporter add diff images to the HTML or JUnit report? I am trying to get these screenshots for the last two days but no luck.