Skip to content

fix: merge .percy.yml config options with snapshot options for serializeDOM#310

Open
rishigupta1599 wants to merge 1 commit intomasterfrom
fix/merge-percy-yml-config-with-serialize-dom
Open

fix: merge .percy.yml config options with snapshot options for serializeDOM#310
rishigupta1599 wants to merge 1 commit intomasterfrom
fix/merge-percy-yml-config-with-serialize-dom

Conversation

@rishigupta1599
Copy link
Copy Markdown
Contributor

Summary

  • Config options from .percy.yml were not being passed to PercyDOM.serialize()
  • Only per-snapshot options were used for DOM serialization
  • Now merges cliConfig.snapshot into options Map before calling getSerializedDOM(), with per-snapshot options taking priority

Test plan

  • Existing tests pass
  • Verify .percy.yml config options are applied during DOM serialization

🤖 Generated with Claude Code

…izeDOM

Config options from .percy.yml (like widths, minHeight, enableJavaScript, etc.)
were not being passed to PercyDOM.serialize(). Only per-snapshot options were used.
Now merges both, with per-snapshot options taking priority.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
@rishigupta1599 rishigupta1599 requested a review from a team as a code owner May 5, 2026 19:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant