Slide 50
Slide 50 text
Techniques
Tests with long assertion output that have to be
updated on every change? Use snapshots for that,
save them in git, review the diff.
Have to mock the whole world to hit a buried path?
Refactor it into a discrete submodule, and only mock
that module once. You’re now writing better code.
The road to 100% test coverage
NodeConf EU 2023 ruyadorno.com