Skip to content

fix: run e2e tests in ci #64

fix: run e2e tests in ci

fix: run e2e tests in ci #64

Triggered via pull request March 20, 2024 23:17
Status Failure
Total duration 3m 1s
Artifacts

ci.yml

on: pull_request
Matrix: Build, Lint, Test
Fit to window
Zoom out
Zoom in

Annotations

17 errors
test/e2e/client.node.spec.ts > client.node > can abort the request: test/e2e/client.node.spec.ts#L90
AssertionError: expected 'Failed to load url node-fetch (resolv…' to contain 'Request aborted' - Expected + Received - Request aborted + Failed to load url node-fetch (resolved id: node-fetch) in /home/runner/work/openapi-typescript-codegen/openapi-typescript-codegen/test/e2e/generated/v3/node/core/request.js. Does the file exist? ❯ test/e2e/client.node.spec.ts:90:23
test/e2e/client.node.spec.ts > client.node > should throw known error (500): test/e2e/client.node.spec.ts#L109
AssertionError: expected '{"name":"Error","message":"Failed to …' to be '{"name":"ApiError","message":"Custom …' // Object.is equality - Expected + Received - {"name":"ApiError","message":"Custom message: Internal Server Error","url":"http://localhost:3000/base/api/v1.0/error?status=500","status":500,"statusText":"Internal Server Error","body":{"status":500,"message":"hello world"}} + {"name":"Error","message":"Failed to load url node-fetch (resolved id: node-fetch) in /home/runner/work/openapi-typescript-codegen/openapi-typescript-codegen/test/e2e/generated/v3/node/core/request.js. Does the file exist?"} ❯ test/e2e/client.node.spec.ts:109:23
test/e2e/client.node.spec.ts > client.node > should throw unknown error (409): test/e2e/client.node.spec.ts#L140
AssertionError: expected '{"name":"Error","message":"Failed to …' to be '{"name":"ApiError","message":"Generic…' // Object.is equality - Expected + Received - {"name":"ApiError","message":"Generic Error: status: 409; status text: Conflict; body: {\n \"status\": 409,\n \"message\": \"hello world\"\n}","url":"http://localhost:3000/base/api/v1.0/error?status=409","status":409,"statusText":"Conflict","body":{"status":409,"message":"hello world"}} + {"name":"Error","message":"Failed to load url node-fetch (resolved id: node-fetch) in /home/runner/work/openapi-typescript-codegen/openapi-typescript-codegen/test/e2e/generated/v3/node/core/request.js. Does the file exist?"} ❯ test/e2e/client.node.spec.ts:140:23
test/e2e/v2.node.spec.ts > v2.node > can abort the request: test/e2e/v2.node.spec.ts#L55
AssertionError: expected 'Failed to load url node-fetch (resolv…' to contain 'Request aborted' - Expected + Received - Request aborted + Failed to load url node-fetch (resolved id: node-fetch) in /home/runner/work/openapi-typescript-codegen/openapi-typescript-codegen/test/e2e/generated/v3/node/core/request.js. Does the file exist? ❯ test/e2e/v2.node.spec.ts:55:23
test/e2e/v3.node.spec.ts > v3.node > can abort the request: test/e2e/v3.node.spec.ts#L90
AssertionError: expected 'Failed to load url node-fetch (resolv…' to contain 'Request aborted' - Expected + Received - Request aborted + Failed to load url node-fetch (resolved id: node-fetch) in /home/runner/work/openapi-typescript-codegen/openapi-typescript-codegen/test/e2e/generated/v3/node/core/request.js. Does the file exist? ❯ test/e2e/v3.node.spec.ts:90:23
test/e2e/v3.node.spec.ts > v3.node > should throw known error (500): test/e2e/v3.node.spec.ts#L109
AssertionError: expected '{"name":"Error","message":"Failed to …' to be '{"name":"ApiError","message":"Custom …' // Object.is equality - Expected + Received - {"name":"ApiError","message":"Custom message: Internal Server Error","url":"http://localhost:3000/base/api/v1.0/error?status=500","status":500,"statusText":"Internal Server Error","body":{"status":500,"message":"hello world"}} + {"name":"Error","message":"Failed to load url node-fetch (resolved id: node-fetch) in /home/runner/work/openapi-typescript-codegen/openapi-typescript-codegen/test/e2e/generated/v3/node/core/request.js. Does the file exist?"} ❯ test/e2e/v3.node.spec.ts:109:23
test/e2e/v3.node.spec.ts > v3.node > should throw unknown error (409): test/e2e/v3.node.spec.ts#L140
AssertionError: expected '{"name":"Error","message":"Failed to …' to be '{"name":"ApiError","message":"Generic…' // Object.is equality - Expected + Received - {"name":"ApiError","message":"Generic Error: status: 409; status text: Conflict; body: {\n \"status\": 409,\n \"message\": \"hello world\"\n}","url":"http://localhost:3000/base/api/v1.0/error?status=409","status":409,"statusText":"Conflict","body":{"status":409,"message":"hello world"}} + {"name":"Error","message":"Failed to load url node-fetch (resolved id: node-fetch) in /home/runner/work/openapi-typescript-codegen/openapi-typescript-codegen/test/e2e/generated/v3/node/core/request.js. Does the file exist?"} ❯ test/e2e/v3.node.spec.ts:140:23
Build, Lint, Test (ubuntu-latest, 20.x)
Process completed with exit code 1.
Build, Lint, Test (ubuntu-latest, 18.x)
The job was canceled because "ubuntu-latest_20_x" failed.
test/e2e/client.node.spec.ts > client.node > can abort the request: test/e2e/client.node.spec.ts#L90
AssertionError: expected 'Failed to load url node-fetch (resolv…' to contain 'Request aborted' - Expected + Received - Request aborted + Failed to load url node-fetch (resolved id: node-fetch) in /home/runner/work/openapi-typescript-codegen/openapi-typescript-codegen/test/e2e/generated/v3/node/core/request.js. Does the file exist? ❯ test/e2e/client.node.spec.ts:90:23
test/e2e/client.node.spec.ts > client.node > should throw known error (500): test/e2e/client.node.spec.ts#L109
AssertionError: expected '{"name":"Error","message":"Failed to …' to be '{"name":"ApiError","message":"Custom …' // Object.is equality - Expected + Received - {"name":"ApiError","message":"Custom message: Internal Server Error","url":"http://localhost:3000/base/api/v1.0/error?status=500","status":500,"statusText":"Internal Server Error","body":{"status":500,"message":"hello world"}} + {"name":"Error","message":"Failed to load url node-fetch (resolved id: node-fetch) in /home/runner/work/openapi-typescript-codegen/openapi-typescript-codegen/test/e2e/generated/v3/node/core/request.js. Does the file exist?"} ❯ test/e2e/client.node.spec.ts:109:23
test/e2e/client.node.spec.ts > client.node > should throw unknown error (409): test/e2e/client.node.spec.ts#L140
AssertionError: expected '{"name":"Error","message":"Failed to …' to be '{"name":"ApiError","message":"Generic…' // Object.is equality - Expected + Received - {"name":"ApiError","message":"Generic Error: status: 409; status text: Conflict; body: {\n \"status\": 409,\n \"message\": \"hello world\"\n}","url":"http://localhost:3000/base/api/v1.0/error?status=409","status":409,"statusText":"Conflict","body":{"status":409,"message":"hello world"}} + {"name":"Error","message":"Failed to load url node-fetch (resolved id: node-fetch) in /home/runner/work/openapi-typescript-codegen/openapi-typescript-codegen/test/e2e/generated/v3/node/core/request.js. Does the file exist?"} ❯ test/e2e/client.node.spec.ts:140:23
test/e2e/v2.node.spec.ts > v2.node > can abort the request: test/e2e/v2.node.spec.ts#L55
AssertionError: expected 'Failed to load url node-fetch (resolv…' to contain 'Request aborted' - Expected + Received - Request aborted + Failed to load url node-fetch (resolved id: node-fetch) in /home/runner/work/openapi-typescript-codegen/openapi-typescript-codegen/test/e2e/generated/v3/node/core/request.js. Does the file exist? ❯ test/e2e/v2.node.spec.ts:55:23
test/e2e/v3.node.spec.ts > v3.node > can abort the request: test/e2e/v3.node.spec.ts#L90
AssertionError: expected 'Failed to load url node-fetch (resolv…' to contain 'Request aborted' - Expected + Received - Request aborted + Failed to load url node-fetch (resolved id: node-fetch) in /home/runner/work/openapi-typescript-codegen/openapi-typescript-codegen/test/e2e/generated/v3/node/core/request.js. Does the file exist? ❯ test/e2e/v3.node.spec.ts:90:23
test/e2e/v3.node.spec.ts > v3.node > should throw known error (500): test/e2e/v3.node.spec.ts#L109
AssertionError: expected '{"name":"Error","message":"Failed to …' to be '{"name":"ApiError","message":"Custom …' // Object.is equality - Expected + Received - {"name":"ApiError","message":"Custom message: Internal Server Error","url":"http://localhost:3000/base/api/v1.0/error?status=500","status":500,"statusText":"Internal Server Error","body":{"status":500,"message":"hello world"}} + {"name":"Error","message":"Failed to load url node-fetch (resolved id: node-fetch) in /home/runner/work/openapi-typescript-codegen/openapi-typescript-codegen/test/e2e/generated/v3/node/core/request.js. Does the file exist?"} ❯ test/e2e/v3.node.spec.ts:109:23
test/e2e/v3.node.spec.ts > v3.node > should throw unknown error (409): test/e2e/v3.node.spec.ts#L140
AssertionError: expected '{"name":"Error","message":"Failed to …' to be '{"name":"ApiError","message":"Generic…' // Object.is equality - Expected + Received - {"name":"ApiError","message":"Generic Error: status: 409; status text: Conflict; body: {\n \"status\": 409,\n \"message\": \"hello world\"\n}","url":"http://localhost:3000/base/api/v1.0/error?status=409","status":409,"statusText":"Conflict","body":{"status":409,"message":"hello world"}} + {"name":"Error","message":"Failed to load url node-fetch (resolved id: node-fetch) in /home/runner/work/openapi-typescript-codegen/openapi-typescript-codegen/test/e2e/generated/v3/node/core/request.js. Does the file exist?"} ❯ test/e2e/v3.node.spec.ts:140:23
Build, Lint, Test (ubuntu-latest, 18.x)
The operation was canceled.