Skip to content

Commit

Permalink
docs: remove WorkspaceProject mention from advanced docs
Browse files Browse the repository at this point in the history
  • Loading branch information
sheremet-va committed Nov 20, 2024
1 parent 3971ab7 commit dac813a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/advanced/pool.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,9 @@ To communicate between different processes, you can create methods object using
```ts
import { createBirpc } from 'birpc'
import { parse, stringify } from 'flatted'
import { createMethodsRPC, WorkspaceProject } from 'vitest/node'
import { createMethodsRPC, TestProject } from 'vitest/node'

function createRpc(project: WorkspaceProject, wss: WebSocketServer) {
function createRpc(project: TestProject, wss: WebSocketServer) {
return createBirpc(
createMethodsRPC(project),
{
Expand All @@ -83,7 +83,7 @@ function createRpc(project: WorkspaceProject, wss: WebSocketServer) {
To make sure every test is collected, you would call `ctx.state.collectFiles` and report it to Vitest reporters:

```ts
async function runTests(project: WorkspaceProject, tests: string[]) {
async function runTests(project: TestProject, tests: string[]) {
// ... running tests, put into "files" and "tasks"
const methods = createMethodsRPC(project)
await methods.onCollected(files)
Expand Down

0 comments on commit dac813a

Please sign in to comment.