[Feature Request] semantic-dom-diff inline snapshots #2323
Unanswered
michaelwarren1106
asked this question in
Ideas
Replies: 1 comment 2 replies
-
This should already be possible using .equal() on an expect/asset using .shadowDom etc. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Currently the Semantic Dom Diff package has a
chai
assertion forequalsSnapshot()
where the snapshots get stored in folders/files.In jest land, I've used the
toMatchInlineSnapshot
feature extensively so as to not have to push/maintain snapshot files in the repo as a separate source code asset.I'd like to propose that the inline snapshot feature be added to
semantic-dom-diff
so that tests can just inline the snapshots in code and not need to have external snapshot files in the name of ease of use/less files, and also in the name of jest parity.Beta Was this translation helpful? Give feedback.
All reactions