DX-1869: Add nestjs example and update readmes #104
Merged
Annotations
3 errors
Run tests:
src/test-utils.ts#L209
{
steps: [
{
steps: [
{
callType: "step",
concurrent: 1,
+ createdAt: 1747323008649,
- createdAt: Any<Number>,
headers: {
"Content-Type": [
"application/json"
],
"Upstash-Workflow-Sdk-Version": [
"1"
],
},
+ messageId: "msg_26hZCxZCuWyyTWPmSVBrNB882ASJ1oQcyE3kxoTDyAXj7NRQ629kATTuvtiRxKt",
- messageId: Any<String>,
out: "some-body",
+ retries: 3,
state: "STEP_SUCCESS",
stepName: "init",
stepType: "Initial",
}
],
type: "sequential",
+ },
+ {
+ steps: [
+ {
+ messageId: "msg_26hZCxZCuWyyTWPmSVBrNB882ASJ1oQcyE3kxoTDyAXj7NRQ629kATTuvtiRxKt",
+ retries: 3,
+ state: "STEP_PROGRESS",
+ }
+ ],
+ type: "next",
}
],
+ workflowRunCreatedAt: 1747323007642,
- workflowRunCreatedAt: Any<Number>,
workflowRunId: "wfr_some-workflow-run-id-KxkUO0qAVShvV2QsSekK-",
workflowState: "RUN_STARTED",
workflowUrl: "https://httpstat.us/200",
}
- Expected - 3
+ Received + 14
at <anonymous> (/home/runner/work/workflow-js/workflow-js/src/test-utils.ts:209:15)
|
Run tests:
src/test-utils.ts#L209
{
- failureFunction: {
- dlqId: Any<String>,
- failHeaders: Any<Object>,
- failResponse: "400 Bad Request",
- failStatus: 400,
- messageId: Any<String>,
- state: "DELIVERED",
- url: "https://httpstat.us/400",
- },
steps: [
{
steps: [
{
callType: "step",
concurrent: 1,
+ createdAt: 1747323040329,
- createdAt: Any<Number>,
headers: {
"Content-Type": [
"application/json"
],
"Upstash-Workflow-Sdk-Version": [
"1"
],
},
+ messageId: "msg_7YoJxFpwkEy5zBp4Dbet36ghtt4fxmxgfnw42JAJtyytN1JN2vjfJ",
- messageId: Any<String>,
out: "some-body",
+ retries: 0,
state: "STEP_SUCCESS",
stepName: "init",
stepType: "Initial",
}
],
type: "sequential",
},
{
steps: [
{
+ messageId: "msg_7YoJxFpwkEy5zBp4Dbet36ghtt4fxmxgfnw42JAJtyytN1JN2vjfJ",
+ retries: 0,
+ state: "STEP_PROGRESS",
- messageId: Any<String>,
- state: "STEP_FAILED",
}
],
type: "next",
}
],
+ workflowRunCreatedAt: 1747323040328,
- workflowRunCompletedAt: Any<Number>,
- workflowRunCreatedAt: Any<Number>,
workflowRunId: "wfr_some-workflow-run-id-iuTzOvQXqVrzKX0MczKdv",
+ workflowState: "RUN_STARTED",
- workflowState: "RUN_FAILED",
workflowUrl: "https://httpstat.us/400",
}
- Expected - 16
+ Received + 8
at <anonymous> (/home/runner/work/workflow-js/workflow-js/src/test-utils.ts:209:15)
|
Run tests
Process completed with exit code 1.
|
Loading