DX-1869: Add nestjs example and update readmes #375
test.yaml
on: pull_request
Upstash Workflow Tests
2m 10s
CF Workers Local Build
0s
CF Workers (Hono) Local Build
0s
Express Local Build
0s
Hono Local Build
0s
Image Gen Local Build
0s
Cross Reference Agent Local Build
0s
Nextjs Local Build
0s
Nextjs (Node 18) Local Build
0s
Nextjs Pages Local Build
0s
Nuxt Local Build
0s
Sveltekit Local Build
0s
integration-test
0s
cloudflare-workers-hono-deployed
0s
nextjs12-node18-deployed
0s
nextjs-pages-deployed
0s
sveltekit-deployed
0s
express-deployed
0s
Annotations
3 errors
error: Assertions not satisfied within timeout: expect(received).toEqual(expected):
src/test-utils.ts#L209
{
steps: [
{
steps: [
{
callType: "step",
concurrent: 1,
+ createdAt: 1747317661811,
- createdAt: Any<Number>,
headers: {
"Content-Type": [
"application/json"
],
"Upstash-Workflow-Sdk-Version": [
"1"
],
},
+ messageId: "msg_7YoJxFpwkEy5zBp2Yrnh3RST8KftJMYZfjzbhzyzdpvDzkXr9h4a2",
- messageId: Any<String>,
out: "some-body",
+ retries: 3,
state: "STEP_SUCCESS",
stepName: "init",
stepType: "Initial",
}
],
type: "sequential",
}
],
+ workflowRunCreatedAt: 1747317661810,
- workflowRunCreatedAt: Any<Number>,
workflowRunId: "wfr_some-workflow-run-id-_UAmU-DAMpEQ_3g1--1lW",
workflowState: "RUN_STARTED",
workflowUrl: "https://httpstat.us/200",
}
- Expected - 3
+ Received + 4
at <anonymous> (/home/runner/work/workflow-js/workflow-js/src/test-utils.ts:209:15)
|
error: Assertions not satisfied within timeout: expect(received).toEqual(expected):
src/test-utils.ts#L209
{
+ dlqId: "1747317697772-0",
failureFunction: {
+ dlqId: "1747317697772-0",
+ failHeaders: {
+ "Content-Length": [
+ "15"
+ ],
+ "Content-Type": [
+ "text/plain"
+ ],
+ Date: [
+ "Thu, 15 May 2025 14:01:35 GMT"
+ ],
+ "Request-Context": [
+ "appId=cid-v1:3548b0f5-7f75-492f-82bb-b6eb0e864e53"
+ ],
+ Server: [
+ "Kestrel"
+ ],
+ "Set-Cookie": [
+ "ARRAffinity=ae33af1282de204ef61be9b4896306f4ed15ebf42fd3542a6a6c6964ad202b14;Path=/;HttpOnly;Secure;Domain=httpstat.us",
+ "ARRAffinitySameSite=ae33af1282de204ef61be9b4896306f4ed15ebf42fd3542a6a6c6964ad202b14;Path=/;HttpOnly;SameSite=None;Secure;Domain=httpstat.us"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=2592000"
+ ],
+ },
- dlqId: Any<String>,
- failHeaders: Any<Object>,
failResponse: "400 Bad Request",
failStatus: 400,
+ messageId: "msg_26hZCxZCuWyyTWPmSVBrNB882ARuWNAmJNn9cVepgxUsbYcfEvBkEkPrPmUh9NQ",
- messageId: Any<String>,
state: "DELIVERED",
url: "https://httpstat.us/400",
},
steps: [
{
steps: [
{
callType: "step",
concurrent: 1,
+ createdAt: 1747317693753,
- createdAt: Any<Number>,
headers: {
"Content-Type": [
"application/json"
],
"Upstash-Workflow-Sdk-Version": [
"1"
],
},
+ messageId: "msg_26hZCxZCuWyyTWPmSVBrNB8829igFYVzPyBnHeshWqs4fXALmGgnqUWcbY4r8qW",
- messageId: Any<String>,
out: "some-body",
+ retries: 0,
state: "STEP_SUCCESS",
stepName: "init",
stepType: "Initial",
}
],
type: "sequential",
},
{
steps: [
{
+ errors: [
+ {
+ error: "400 Bad Request",
+ headers: {
+ "Content-Length": [
+ "15"
+ ],
+ "Content-Type": [
+ "text/plain"
+ ],
+ Date: [
+ "Thu, 15 May 2025 14:01:35 GMT"
+ ],
+ "Request-Context": [
+ "appId=cid-v1:3548b0f5-7f75-492f-82bb-b6eb0e864e53"
+ ],
+ Server: [
+ "Kestrel"
+ ],
+ "Set-Cookie": [
+ "ARRAffinity=ae33af1282de204ef61be9b4896306f4ed15ebf42fd3542a6a6c6964ad202b14;Path=/;HttpOnly;Secure;Domain=httpstat.us",
+ "ARRAffinitySameSite=ae33af1282de204ef61be9b4896306f4ed15ebf42fd3542a6a6c6964ad202b14;Path=/;HttpOnly;SameSite=None;Secure;Domain=httpstat.us"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=2592000"
+ ],
+ },
+ status: 400,
+ time: 1747317696295,
+ }
+ ],
+ messageId: "msg_26hZCxZCuWyyTWPmSVBrNB8829igFYVzPyBnHeshWqs4fXALmGgnqUWcbY4r8qW",
+ retries: 0,
- messageId: Any<String>,
state: "STEP_FAILED",
}
],
type: "next",
}
],
+ workflowRunCompletedAt: 1747317699773,
+ workflowRunCreatedAt: 1747317692750,
- workflowRunCompletedAt: Any<Number>,
- workflowRunCreatedAt: Any<Number>,
workflowRunId: "wfr_some-workflow-run-id-He4_usGXxTGenADhJH7fS",
workflowState: "RUN_FAILED",
workflowUrl: "https://httpstat.us/400",
}
- Expected - 8
+ Received + 65
at <anonymous> (/home/runner/work/workflow-js/workflow-js/src/test-utils.ts:209:15)
|
Upstash Workflow Tests
Process completed with exit code 1.
|