Skip to content

Commit 9a7e996

Browse files
committed
Fixing documentation
1 parent afe55cb commit 9a7e996

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

packages/vitest-pool-workers/types/cloudflare-test.d.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ declare module "cloudflare:test" {
200200
waitForStatus(status: InstanceStatus["status"]): Promise<void>;
201201

202202
/**
203-
* Cleans up the Workflow instance's state.
203+
* Cleans up the Workflow instance.
204204
* This is crucial for ensuring test isolation by preventing state from
205205
* leaking between tests. It's best practice to call this in an `afterEach`
206206
* hook or at the end of every test.
@@ -386,6 +386,8 @@ declare module "cloudflare:test" {
386386
* await instance.waitForStatus("complete");
387387
* await instance.cleanUp();
388388
* }
389+
*
390+
* introspector.cleanUp();
389391
* });
390392
* ```
391393
*/
@@ -411,7 +413,7 @@ declare module "cloudflare:test" {
411413
get(): WorkflowInstanceIntrospector[];
412414

413415
/**
414-
* Cleans up the Workflow introspector state.
416+
* Cleans up the Workflow introspector.
415417
* This is crucial for ensuring that the introspection of a Workflow does
416418
* not get persisted across tests.
417419
* Call this in an `afterEach` hook or at the end of every test.

0 commit comments

Comments
 (0)