@teamkeel/testing-runtime 0.422.1 → 0.422.3

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/README.md CHANGED
@@ -1,3 +1,3 @@
1
1
  # `@teamkeel/testing-runtime`
2
2
 
3
- `@teamkeel/testng-runtime` is an internal package used by `@teamkeel/testing`. Do not install this package directly.
3
+ `@teamkeel/testing-runtime` is an internal package used by `@teamkeel/testing`. Do not install this package directly.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teamkeel/testing-runtime",
3
- "version": "0.422.1",
3
+ "version": "0.422.3",
4
4
  "description": "Internal package used by the generated @teamkeel/testing package",
5
5
  "exports": "./src/index.mjs",
6
6
  "typings": "src/index.d.ts",
@@ -18,7 +18,7 @@
18
18
  "prettier": "3.1.1"
19
19
  },
20
20
  "dependencies": {
21
- "@teamkeel/functions-runtime": "^0.414.7",
21
+ "@teamkeel/functions-runtime": "^0.422.1",
22
22
  "jsonwebtoken": "^9.0.2",
23
23
  "kysely": "^0.27.6",
24
24
  "lodash.ismatch": "^4.4.0",
@@ -160,6 +160,18 @@ export class FlowExecutor {
160
160
  return flow;
161
161
  }
162
162
 
163
+ if (flow.status === "COMPLETED") {
164
+ throw new Error(
165
+ `flow run status reached a completed state and therefore cannot become AWAITING_INPUT`
166
+ );
167
+ }
168
+
169
+ if (flow.status === "FAILED") {
170
+ throw new Error(
171
+ `flow run status reached a failed state and therefore cannot become AWAITING_INPUT`
172
+ );
173
+ }
174
+
163
175
  await new Promise((resolve) => setTimeout(resolve, 100));
164
176
  }
165
177
  }