How to add visual regression testing to Jest
How to add visual regression testing to Jest
Jest has excellent snapshot testing for component output — toMatchSnapshot() saves the serialized HTML and diffs it on subsequent runs. But HTML string diffs miss the entire visual layer: CSS, layout, spac...
pagebolt.hashnode.dev6 min read