Prerequisites
Describe the Feature
The toEqualHtml() matcher doesn't seem to be sorting attributes like Jest does.
Attribute order in dev vs prod builds can be different for some reason, which can cause toEqualHtml() to fail.
Use Case
This should help keep snapshot tests stable across builds and environments.
Proposed Solution
No response
Alternatives Considered
No response
Additional Context
No response
Prerequisites
Describe the Feature
The
toEqualHtml()matcher doesn't seem to be sorting attributes like Jest does.Attribute order in dev vs prod builds can be different for some reason, which can cause
toEqualHtml()to fail.Use Case
This should help keep snapshot tests stable across builds and environments.
Proposed Solution
No response
Alternatives Considered
No response
Additional Context
No response