Skip to content

Commit 0c16e7c

Browse files
committed
fix: support exports.default.fetch
1 parent 3875fd1 commit 0c16e7c

3 files changed

Lines changed: 19 additions & 19 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"@cloudflare/vitest-pool-workers": "^0.14.9",
3737
"@cloudflare/workers-types": "^4.20260424.1",
3838
"@epic-web/test-server": "^0.1.6",
39-
"msw": "^2.14.2",
39+
"msw": "^2.14.6",
4040
"publint": "^0.3.18",
4141
"tsdown": "^0.21.10",
4242
"typescript": "^6.0.3",

pnpm-lock.yaml

Lines changed: 17 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/fetch/fetch.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ it('intercepts a fetch request made in a worker', async () => {
3636
await expect.soft(response.json()).resolves.toEqual({ mocked: true })
3737
})
3838

39-
it('intercepts a fetch request in a worker called as "exports.default.fetch"', async () => {
39+
it('intercepts a fetch request in a worker used as "exports.default.fetch"', async () => {
4040
network.use(
4141
http.get('http://localhost/resource', () => {
4242
return HttpResponse.json({ mocked: true })

0 commit comments

Comments
 (0)