One solid practice to have while coding is to fix a bug and at the same time write a unit test that would have uncovered it.
Usually I write the unit test first, to make sure it actually finds the bug, then fix it. (Which is probably how you mean this, but clarity is good.)
Red-to-green feels so nice!
For your security, we need to re-authenticate you.
Click the link we sent to , or click here to sign in.
Usually I write the unit test first, to make sure it actually finds the bug, then fix it. (Which is probably how you mean this, but clarity is good.)
Red-to-green feels so nice!