Skip to content

Commit d9db2d7

Browse files
committed
fixtures READMEs updated
1 parent 9a7e996 commit d9db2d7

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

fixtures/vitest-pool-workers-examples/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ This directory contains example projects tested with `@cloudflare/vitest-pool-wo
1010
| [📦 kv-r2-caches](kv-r2-caches) | Isolated tests using KV, R2 and the Cache API |
1111
| [📚 d1](d1) | Isolated tests using D1 with migrations |
1212
| [📌 durable-objects](durable-objects) | Isolated tests using Durable Objects with direct access |
13+
| [🔁 workflows](workflows) | Tests using Workflows |
1314
| [🚥 queues](queues) | Tests using Queue producers and consumers |
1415
| [🚰 pipelines](pipelines) | Tests using Pipelines |
1516
| [🚀 hyperdrive](hyperdrive) | Tests using Hyperdrive with a Vitest managed TCP server |
Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
# 🔁 workflows
22

3-
Unit testing of workflows themselves is not possible yet - but you can still
4-
trigger them in unit tests.
3+
This Worker includes two Workflows: a basic workflow that runs a single step and completes `TestWorkflow`, and a long-running worflow that includes more steps `TestLongWorkflow`.
4+
The testing suite uses workflow mocking to validate the logic of each step.
5+
6+
| Test | Overview |
7+
| ----------------------------------------------- | ----------------------------------------------------------------------------------------------------------- |
8+
| [integration.test.ts](test/integration.test.ts) | Tests on the Worker's endpoints, ensuring that workflows are created correctly and statuses can be fetched. |
9+
| [unit.test.ts](test/unit.test.ts) | Tests on the internal logic of each workflow. It uses mocking to test steps in isolation. |

0 commit comments

Comments
 (0)