Skip to content

Commit ec3b73c

Browse files
Apply suggestions from code review
Co-authored-by: ToriLindsay <[email protected]>
1 parent 114649d commit ec3b73c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/content/docs/workers/testing/vitest-integration/debugging.mdx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ head: []
77
description: Debug your Workers tests with Vitest.
88
---
99

10-
Starting with `@cloudflare/vitest-pool-workers` v0.7.5, you can now debug your Workers tests with Vitest.
10+
This guide shows you how to debug your Workers tests with Vitest. This is available with `@cloudflare/vitest-pool-workers` v0.7.5 or later.
1111

1212
## Open inspector with Vitest
1313

@@ -17,15 +17,15 @@ To start debugging, run Vitest with the following command and attach a debugger
1717
vitest --inspect --no-file-parallelism
1818
```
1919

20-
## Customizing the inspector port
20+
## Customize the inspector port
2121

2222
By default, the inspector will be opened on port `9229`. If you need to use a different port (for example, `3456`), you can run the following command:
2323

2424
```sh
2525
vitest --inspect=3456 --no-file-parallelism
2626
```
2727

28-
or define it in your Vitest configuration file:
28+
Alternatively, you can define it in your Vitest configuration file:
2929

3030
```ts
3131
import { defineWorkersConfig } from "@cloudflare/vitest-pool-workers/config";
@@ -46,7 +46,7 @@ export default defineWorkersConfig({
4646

4747
## Setup VS Code to use breakpoints
4848

49-
To setup VS Code for breakpoint debugging in your Worker tests, you can create a `.vscode/launch.json` file that contains the following configuration:
49+
To setup VS Code for breakpoint debugging in your Worker tests, create a `.vscode/launch.json` file that contains the following configuration:
5050

5151
```json
5252
{
@@ -80,4 +80,4 @@ To setup VS Code for breakpoint debugging in your Worker tests, you can create a
8080
}
8181
```
8282

83-
You will find the **Debug Workers tests** option at the top of the **Run & Debug** panel. This will open inspector with Vitest and attach a debugger to the Workers runtime. You can then add breakpoints to your test files and start debugging.
83+
Select **Debug Workers tests** at the top of the **Run & Debug** panel to open inspector with Vitest and attach a debugger to the Workers runtime. Then you can add breakpoints to your test files and start debugging.

0 commit comments

Comments
 (0)