The npm package jest-serializer-html had infrequent releases. Initial activity occurred in 2017 with 7 releases. One release each was published in January 2018, December 2018, April 2019 and July 2021. Since July 2021, there have been no new releases as of September 8, 2025.
jest-serializer-html provides a Jest serializer for HTML, allowing you to easily create snapshot tests for HTML strings. This tool cleans up HTML differences caused by attribute ordering and whitespace variations, resulting in more stable and readable snapshot comparisons. Ideal for testing components or functions that output HTML, it simplifies assertion logic and ensures visual consistency across code changes. Installation is straightforward, integrating seamlessly with your existing Jest test suite.
Jest-serializer-html downloads show strong growth from March 2024 (1.9M) to August 2025 (6.0M). There's a clear upward trend, peaking in July 2025 (6.6M). September 2025 downloads are incomplete (1.4M), but suggest potentially lower numbers than the previous months.