NimaSoroush / differencify

Differencify is a library for visual regression testing
MIT License
634 stars 46 forks source link

Issue with mockRequest(); #170

Open heiyeunl opened 4 years ago

heiyeunl commented 4 years ago

I'm having trouble with using play mode when doing mock request. There isn't a problem when saving fixtures, but when I have process.env.CI = 'true'; in beforeAll, it looks like it's still not using the fixture. Just wondering if I'm missing something.

Also just a general question about differencify and mockeer. It looks like mockeer to save all request's response, including css, in fixtures. If I'm trying to do compare the snapshot of a site before and after changing a css file, it seems like I shouldn't be using mockeer since mockeer to mock css file that's stored in fixture, is that correct? Anyway thank you and your help is very much appreciate here :)

NPrada commented 3 years ago

Were you able to solve the problem? I am having an issue where it seems like the generated fixtures aren't being used. Even with the parameter { replaceIfExists: false} it seems to just regenerate the fixture