> write as many end-to-end and integration tests as you can
and
> make sure your tests run fast enough to run the full set of tests after every commit