Closed tangrufus closed 5 years ago
For those having the same question, I packaged my workaorund as a gem
Hi @TangRufus, starting from version 4.x of the percy-capybara
gem, you won't need to establish any loader at all. We've removed the need for them!
You mentioned:
the :filesystem loader is loading too many resources.
With the new 4.x based version, we capture only the resources used in your snapshots and nothing else.
We've published an upgrade guide from v3 to v4, take a look when you get a moment.
We want to use Bedorck with
Percy::Anywhere
. However, the:filesystem
loader is loading too many resources.Currenly code that doesn't allow custom loader:
https://github.com/percy/percy-capybara/blob/5865d54b81eac27ffc74c839eef7425a361d6f89/lib/percy/capybara/anywhere.rb#L25
https://github.com/percy/percy-capybara/blob/5865d54b81eac27ffc74c839eef7425a361d6f89/lib/percy/capybara/client.rb#L84-L123
Here is my current workaorund - monkey patch the
:filesystem
loader:What is the preferred way to define/use custom loaders?
The goal is to:
Percy::Capybara::Anywhere.run