Skip to content

Commit 4eb1e9e

Browse files
authored
Update src/content/docs/workers/testing/vitest-integration/configuration.mdx
1 parent ca119b5 commit 4eb1e9e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,9 @@ export default defineWorkersConfig({
7171

7272
### `defineWorkersProject(options)`
7373

74-
Similar to [`defineWorkersConfig()`](#defineworkersconfigoptions), this ensures Vitest is configured to use the Workers integration with the correct module resolution settings, and provides type checking for [WorkersPoolOptions](#workerspooloptions), except it should be used in place of the [`defineProject()`](https://vitest.dev/guide/workspace) function from Vitest. It also accepts a `Promise` of `options`, or an optionally-`async` function returning `options`.
74+
Similar to [`defineWorkersConfig()`](#defineworkersconfigoptions), this ensures Vitest is configured to use the Workers integration with the correct module resolution settings, and provides type checking for [WorkersPoolOptions](#workerspooloptions), except it should be used in place of the [`defineProject()`](https://vitest.dev/guide/workspace) function from Vitest.
75+
76+
It also accepts a `Promise` of `options`, or an optionally-`async` function returning `options`.
7577

7678
```ts
7779
import { defineWorkspace, defineProject } from "vitest/config";

0 commit comments

Comments
 (0)