Skip to content

Commit 054afc5

Browse files
authored
Fix @cloudflare/vitest-pool-workers in tsconfig (#30524)
1 parent b5217e6 commit 054afc5

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/content/docs/durable-objects/examples/testing-with-durable-objects.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ Create a `test/tsconfig.json` to configure TypeScript for your tests:
152152
"extends": "../tsconfig.json",
153153
"compilerOptions": {
154154
"moduleResolution": "bundler",
155-
"types": ["@cloudflare/vitest-pool-workers"]
155+
"types": ["@cloudflare/vitest-pool-workers/types"]
156156
},
157157
"include": ["./**/*.ts", "../src/worker-configuration.d.ts"]
158158
}

src/content/docs/workers/testing/vitest-integration/migration-guides/migrate-from-miniflare-2.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ If you are using TypeScript, update your `tsconfig.json` to include the correct
7171
"types": [
7272
...
7373
- "vitest-environment-miniflare/globals"
74-
+ "@cloudflare/vitest-pool-workers"
74+
+ "@cloudflare/vitest-pool-workers/types"
7575
]
7676
},
7777
}

src/content/docs/workers/testing/vitest-integration/write-your-first-test.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ You should also add the output of `wrangler types` to the `include` array so tha
9494
"compilerOptions": {
9595
"moduleResolution": "bundler",
9696
"types": [
97-
"@cloudflare/vitest-pool-workers", // provides `cloudflare:test` and `cloudflare:workers` types
97+
"@cloudflare/vitest-pool-workers/types", // provides `cloudflare:test` and `cloudflare:workers` types
9898
],
9999
},
100100
"include": [

0 commit comments

Comments
 (0)