Skip to content

Commit c51a39e

Browse files
committed
Update changeset
1 parent 8bbe0b6 commit c51a39e

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
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 & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ export class TestWorkflow extends WorkflowEntrypoint<Env> {
1010
console.log("Starting running...");
1111

1212
await step.do("step one", async () => {
13+
// some logic
1314
return "result of step one";
1415
});
1516

@@ -32,7 +33,7 @@ export class TestLongWorkflow extends WorkflowEntrypoint<Env, Params> {
3233
timeout: "1 second",
3334
},
3435
async () => {
35-
console.log("if my outcome gets mocked, this shouldn't be logging");
36+
// some logic
3637
return "result of my step";
3738
}
3839
);

0 commit comments

Comments
 (0)