Skip to content

Commit bb01a01

Browse files
committed
Update changeset
1 parent 8bbe0b6 commit bb01a01

File tree

2 files changed

+6
-10
lines changed

2 files changed

+6
-10
lines changed

.changeset/public-women-exist.md

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,11 @@
11
---
22
"@cloudflare/vitest-pool-workers": minor
3-
"@cloudflare/workflows-shared": minor
4-
"miniflare": patch
53
---
64

75
Add Workflows test support to the `cloudflare:test` module.
86

9-
The `cloudflare:test` module has two new APIs:
10-
- `introspectWorkflowInstance`
11-
- `introspectWorkflow`
12-
which allow changing the behavior of one or multiple Workflow instances created during tests.
13-
7+
The `cloudflare:test` module has two new APIs:
148

15-
Miniflare DO plugin has an `unsafeScriptName` in DurableObjectsOptionsSchema, to allow defining a DO serviceName without the 'core:user:' prefix.
9+
- `introspectWorkflowInstance`
10+
- `introspectWorkflow`
11+
which allow changing the behavior of one or multiple Workflow instances created during tests.

fixtures/vitest-pool-workers-examples/workflows/src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import {
2-
WorkerEntrypoint,
32
WorkflowEntrypoint,
43
WorkflowEvent,
54
WorkflowStep,
@@ -10,6 +9,7 @@ export class TestWorkflow extends WorkflowEntrypoint<Env> {
109
console.log("Starting running...");
1110

1211
await step.do("step one", async () => {
12+
// some logic
1313
return "result of step one";
1414
});
1515

@@ -32,7 +32,7 @@ export class TestLongWorkflow extends WorkflowEntrypoint<Env, Params> {
3232
timeout: "1 second",
3333
},
3434
async () => {
35-
console.log("if my outcome gets mocked, this shouldn't be logging");
35+
// some logic
3636
return "result of my step";
3737
}
3838
);

0 commit comments

Comments
 (0)