I found the manual text fixtures harder to maintain while jest already has snapshot testing to compare textual outputs. It will already handle normalizing and formatting to avoid OS differences.
In order to regenerate snapshots when the tests change, run jest -u (jest will show a hint if snapshots are outdated)
Hello!
I found the manual text fixtures harder to maintain while jest already has snapshot testing to compare textual outputs. It will already handle normalizing and formatting to avoid OS differences.
In order to regenerate snapshots when the tests change, run
jest -u
(jest will show a hint if snapshots are outdated)