@dudousxd/nestjs-durable-testing 0.7.0 → 0.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1145,6 +1145,24 @@ function runStateStoreContract(name, makeStore) {
1145
1145
  expect2((await store.takeSignalWaiter("approve-1"))?.seq).toBe(3);
1146
1146
  expect2(await store.takeSignalWaiter("approve-1")).toBeNull();
1147
1147
  });
1148
+ t("round-trips a signal waiter parallelGroup (child-fan tag) through put \u2192 take \u2192 list", async () => {
1149
+ await store.putSignalWaiter({
1150
+ token: "child:r.child.0",
1151
+ runId: "r",
1152
+ seq: 0,
1153
+ parallelGroup: "gather:0"
1154
+ });
1155
+ await store.putSignalWaiter({
1156
+ token: "child:r.child.9",
1157
+ runId: "r",
1158
+ seq: 9
1159
+ });
1160
+ const listed = await store.listSignalWaiters("child:");
1161
+ expect2(listed.find((w) => w.token === "child:r.child.0")?.parallelGroup).toBe("gather:0");
1162
+ expect2(listed.find((w) => w.token === "child:r.child.9")?.parallelGroup).toBeUndefined();
1163
+ expect2((await store.takeSignalWaiter("child:r.child.0"))?.parallelGroup).toBe("gather:0");
1164
+ expect2((await store.takeSignalWaiter("child:r.child.9"))?.parallelGroup).toBeUndefined();
1165
+ });
1148
1166
  t("buffers signals and takes them FIFO per token", async () => {
1149
1167
  await store.bufferSignal("sig", {
1150
1168
  n: 1