DX-1911: Add fastify example #108
Merged
Annotations
3 errors
Run tests:
src/test-utils.ts#L209
{
steps: [
{
steps: [
{
callType: "step",
concurrent: 1,
+ createdAt: 1748942962829,
- createdAt: Any<Number>,
headers: {
"Content-Type": [
"application/json"
],
"Upstash-Workflow-Sdk-Version": [
"1"
],
},
+ messageId: "msg_26hZCxZCuWyyTWPmSVBrNB882AzCKWxEwW5PCiuG3XM9Kebnp4HzAkKQc4EWrh4",
- messageId: Any<String>,
out: "some-body",
+ retries: 3,
state: "STEP_SUCCESS",
stepName: "init",
stepType: "Initial",
}
],
type: "sequential",
+ },
+ {
+ steps: [
+ {
+ messageId: "msg_26hZCxZCuWyyTWPmSVBrNB882AzCKWxEwW5PCiuG3XM9Kebnp4HzAkKQc4EWrh4",
+ retries: 3,
+ state: "STEP_PROGRESS",
+ }
+ ],
+ type: "next",
}
],
+ workflowRunCreatedAt: 1748942962826,
- workflowRunCreatedAt: Any<Number>,
workflowRunId: "wfr_some-workflow-run-id-D09QtDiayKDgrye-z-OGE",
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: 1748942993103,
- createdAt: Any<Number>,
headers: {
"Content-Type": [
"application/json"
],
"Upstash-Workflow-Sdk-Version": [
"1"
],
},
+ messageId: "msg_26hZCxZCuWyyTWPmSVBrNCtiJEjKotYfEuCHernA66yaBpVYrbsS2z7gQDauX6j",
- messageId: Any<String>,
out: "some-body",
+ retries: 0,
state: "STEP_SUCCESS",
stepName: "init",
stepType: "Initial",
}
],
type: "sequential",
},
{
steps: [
{
+ messageId: "msg_26hZCxZCuWyyTWPmSVBrNCtiJEjKotYfEuCHernA66yaBpVYrbsS2z7gQDauX6j",
+ retries: 0,
+ state: "STEP_PROGRESS",
- messageId: Any<String>,
- state: "STEP_FAILED",
}
],
type: "next",
}
],
+ workflowRunCreatedAt: 1748942993100,
- workflowRunCompletedAt: Any<Number>,
- workflowRunCreatedAt: Any<Number>,
workflowRunId: "wfr_some-workflow-run-id-uLMFRzXaqJdpdhvPjrE7Y",
+ 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