Skip to content

Commit 97e5a02

Browse files
committed
website/blog: update post
1 parent 9df1b85 commit 97e5a02

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

apps/website/views/docs/blog/typescript-monorepos-with-proby.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ untouched:
139139
```ts
140140
import test from "@rcompat/test";
141141

142-
await using telegram = test.intercept("https://api.telegram.org", setup => {
142+
using telegram = test.intercept("https://api.telegram.org", setup => {
143143
setup.post("/sendMessage", () => ({
144144
ok: true,
145145
result: { message_id: 42 },
@@ -154,8 +154,8 @@ test.case("notifies user on signup", async assert => {
154154
});
155155
```
156156

157-
`await using` restores the original fetch automatically when the scope exits.
158-
For long-lived intercepts, use `test.ended`:
157+
`using` restores the original fetch automatically when the scope exits. For
158+
long-lived intercepts, use `test.ended`:
159159

160160
```ts
161161
const telegram = test.intercept("https://api.telegram.org", setup => {

0 commit comments

Comments
 (0)