Skip to content

Commit 82feb4d

Browse files
committed
flow
1 parent 71eee0e commit 82feb4d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

exercises/04.debugging/README.mdx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
# Debugging tests
22

3-
It's natural that you want the tests you write to pass. But in reality, the value of tests comes from [📜 when they fail](https://www.epicweb.dev/writing-tests-that-fail). That means the safeguard of automation you put there is catching bugs or regressions. That means one less broken user experience shipped to production. It's working.
3+
While we all want our tests to pass, the true value of testing emerges [📜 when they fail](https://www.epicweb.dev/writing-tests-that-fail). A failing test means our safeguards are working - catching bugs and regressions before they reach production. That's exactly what we want.
44

5-
But nobody likes a failing test, and twice so if you are tasked with fixing one.
5+
But nobody likes a failing test, more so if you are tasked with fixing one.
66

7-
In this exercise block, you will discover the debugging techniques that turn failed tests from a task you put off until it's too late to a pleasant and even fun experience. The next time you've got a tricky test on your hands, you will have the right tools to employ.
7+
In this exercise block, you will discover the debugging techniques that turn failed tests from a task you put off until it's too late to a pleasant and even fun experience. The next time you've got a tricky test on your hands, you will be equipped with the right tools to tackle it.
88

99
## Debugging techniques
1010

11-
There's plenty of ways to debug JavaScript code, and most of them still apply when debugging tests as well. You have likely tried isolating the behaviors, experimenting with the input, following stack traces, desperately spamming `console.log()` everywhere—the good stuff. Today is not about that.
11+
There are plenty of ways to debug JavaScript code, and most of them also apply when debugging tests. You have likely tried isolating the behaviors, experimenting with the input, following stack traces, desperately spamming `console.log()` everywhere—the good stuff. Today is not about that.
1212

1313
Today, I would love to talk about specific techniques for debugging your in-browser tests. The things you will use _on top_ of the general arsenal of tools you already know and love. Techniques specific to Vitest Browser Mode or those that require extra steps to be used in the browser.
1414

15-
Sounds exciting? Let's go.
15+
Sound exciting? Let's go.

0 commit comments

Comments
 (0)