Skip to content

types

types #75

Triggered via push September 24, 2023 20:18
Status Failure
Total duration 8m 52s
Artifacts

test.yml

on: push
Matrix: integration
Fit to window
Zoom out
Zoom in

Annotations

10 errors, 10 warnings, and 2 notices
[chromium] › basic-dev.test.ts:39:2 › basic dev › ssr: test\basic-dev.test.ts#L41
1) [chromium] › basic-dev.test.ts:39:2 › basic dev › ssr ========================================= Error: expect(received).toBe(expected) // Object.is equality Expected: 200 Received: 500 39 | test("ssr", async () => { 40 | let res = await fixture.requestDocument("/"); > 41 | expect(res.status).toBe(200); | ^ 42 | expect(res.headers.get("Content-Type")).toBe("text/html"); 43 | expect(selectHtml(await res.text(), "[data-test-id=content]")).toBe( 44 | prettyHtml(`<h1 data-test-id="content">Hello from Vinxi</h1>`), at file:///D:/a/vinxi/vinxi/test/basic-dev.test.ts:41:22
[chromium] › basic-dev.test.ts:39:2 › basic dev › ssr: test\basic-dev.test.ts#L41
1) [chromium] › basic-dev.test.ts:39:2 › basic dev › ssr ========================================= Retry #1 --------------------------------------------------------------------------------------- Error: expect(received).toBe(expected) // Object.is equality Expected: 200 Received: 500 39 | test("ssr", async () => { 40 | let res = await fixture.requestDocument("/"); > 41 | expect(res.status).toBe(200); | ^ 42 | expect(res.headers.get("Content-Type")).toBe("text/html"); 43 | expect(selectHtml(await res.text(), "[data-test-id=content]")).toBe( 44 | prettyHtml(`<h1 data-test-id="content">Hello from Vinxi</h1>`), at file:///D:/a/vinxi/vinxi/test/basic-dev.test.ts:41:22
[chromium] › basic-dev.test.ts:39:2 › basic dev › ssr: test\basic-dev.test.ts#L41
1) [chromium] › basic-dev.test.ts:39:2 › basic dev › ssr ========================================= Retry #2 --------------------------------------------------------------------------------------- Error: expect(received).toBe(expected) // Object.is equality Expected: 200 Received: 500 39 | test("ssr", async () => { 40 | let res = await fixture.requestDocument("/"); > 41 | expect(res.status).toBe(200); | ^ 42 | expect(res.headers.get("Content-Type")).toBe("text/html"); 43 | expect(selectHtml(await res.text(), "[data-test-id=content]")).toBe( 44 | prettyHtml(`<h1 data-test-id="content">Hello from Vinxi</h1>`), at file:///D:/a/vinxi/vinxi/test/basic-dev.test.ts:41:22
[chromium] › basic-dev.test.ts:48:2 › basic dev › hydrates: test\helpers\playwright-fixture.ts#L203
2) [chromium] › basic-dev.test.ts:48:2 › basic dev › hydrates ==================================== Error: No element matches selector "[data-test-id=content]" at helpers\playwright-fixture.ts:203 201 | let el = cheerio(selector, source); 202 | if (!el.length) { > 203 | throw new Error(`No element matches selector "${selector}"`); | ^ 204 | } 205 | return el; 206 | } at getElement (file:///D:/a/vinxi/vinxi/test/helpers/playwright-fixture.ts:203:11) at selectHtml (file:///D:/a/vinxi/vinxi/test/helpers/playwright-fixture.ts:209:12) at getHtml (file:///D:/a/vinxi/vinxi/test/helpers/playwright-fixture.ts:197:21) at file:///D:/a/vinxi/vinxi/test/basic-dev.test.ts:52:10
[chromium] › basic-dev.test.ts:48:2 › basic dev › hydrates: test\helpers\playwright-fixture.ts#L203
2) [chromium] › basic-dev.test.ts:48:2 › basic dev › hydrates ==================================== Retry #1 --------------------------------------------------------------------------------------- Error: No element matches selector "[data-test-id=content]" at helpers\playwright-fixture.ts:203 201 | let el = cheerio(selector, source); 202 | if (!el.length) { > 203 | throw new Error(`No element matches selector "${selector}"`); | ^ 204 | } 205 | return el; 206 | } at getElement (file:///D:/a/vinxi/vinxi/test/helpers/playwright-fixture.ts:203:11) at selectHtml (file:///D:/a/vinxi/vinxi/test/helpers/playwright-fixture.ts:209:12) at getHtml (file:///D:/a/vinxi/vinxi/test/helpers/playwright-fixture.ts:197:21) at file:///D:/a/vinxi/vinxi/test/basic-dev.test.ts:52:10
[chromium] › basic-dev.test.ts:48:2 › basic dev › hydrates: test\helpers\playwright-fixture.ts#L203
2) [chromium] › basic-dev.test.ts:48:2 › basic dev › hydrates ==================================== Retry #2 --------------------------------------------------------------------------------------- Error: No element matches selector "[data-test-id=content]" at helpers\playwright-fixture.ts:203 201 | let el = cheerio(selector, source); 202 | if (!el.length) { > 203 | throw new Error(`No element matches selector "${selector}"`); | ^ 204 | } 205 | return el; 206 | } at getElement (file:///D:/a/vinxi/vinxi/test/helpers/playwright-fixture.ts:203:11) at selectHtml (file:///D:/a/vinxi/vinxi/test/helpers/playwright-fixture.ts:209:12) at getHtml (file:///D:/a/vinxi/vinxi/test/helpers/playwright-fixture.ts:197:21) at file:///D:/a/vinxi/vinxi/test/basic-dev.test.ts:52:10
[chromium] › basic-dev.test.ts:66:2 › basic dev › api: test\basic-dev.test.ts#L68
3) [chromium] › basic-dev.test.ts:66:2 › basic dev › api ========================================= Error: expect(received).toBe(expected) // Object.is equality Expected: 200 Received: 500 66 | test("api", async () => { 67 | let res = await fixture.requestDocument("/api/hello"); > 68 | expect(res.status).toBe(200); | ^ 69 | expect(res.headers.get("Content-Type")).toBe("text/html"); 70 | expect(await res.text()).toBe("Hello world"); 71 | }); at file:///D:/a/vinxi/vinxi/test/basic-dev.test.ts:68:22
[chromium] › basic-dev.test.ts:66:2 › basic dev › api: test\basic-dev.test.ts#L68
3) [chromium] › basic-dev.test.ts:66:2 › basic dev › api ========================================= Retry #1 --------------------------------------------------------------------------------------- Error: expect(received).toBe(expected) // Object.is equality Expected: 200 Received: 500 66 | test("api", async () => { 67 | let res = await fixture.requestDocument("/api/hello"); > 68 | expect(res.status).toBe(200); | ^ 69 | expect(res.headers.get("Content-Type")).toBe("text/html"); 70 | expect(await res.text()).toBe("Hello world"); 71 | }); at file:///D:/a/vinxi/vinxi/test/basic-dev.test.ts:68:22
[chromium] › basic-dev.test.ts:66:2 › basic dev › api: test\basic-dev.test.ts#L68
3) [chromium] › basic-dev.test.ts:66:2 › basic dev › api ========================================= Retry #2 --------------------------------------------------------------------------------------- Error: expect(received).toBe(expected) // Object.is equality Expected: 200 Received: 500 66 | test("api", async () => { 67 | let res = await fixture.requestDocument("/api/hello"); > 68 | expect(res.status).toBe(200); | ^ 69 | expect(res.headers.get("Content-Type")).toBe("text/html"); 70 | expect(await res.text()).toBe("Hello world"); 71 | }); at file:///D:/a/vinxi/vinxi/test/basic-dev.test.ts:68:22
[chromium] › basic-prod.test.ts:35:2 › basic build › ssr: test\helpers\create-fixture.ts#L163
4) [chromium] › basic-prod.test.ts:35:2 › basic build › ssr ====================================== Error: Expected build directory to exist at D:\a\vinxi\vinxi\test\.fixtures\basic-build-s6ivua339f8\.output\server\index.mjs. The build probably failed. Did you maybe have a syntax error in your test code strings? at helpers\create-fixture.ts:163 161 | let buildPath = path.resolve(projectDir, ".output", "server", "index.mjs"); 162 | if (!fse.existsSync(buildPath)) { > 163 | throw new Error( | ^ 164 | c.red( 165 | `Expected build directory to exist at ${c.dim( 166 | buildPath, at createFixture (file:///D:/a/vinxi/vinxi/test/helpers/create-fixture.ts:163:9) at file:///D:/a/vinxi/vinxi/test/basic-prod.test.ts:16:13
🎭 Playwright Run Summary
9 passed (37s)
🎭 Playwright Run Summary
7 failed [chromium] › basic-dev.test.ts:39:2 › basic dev › ssr ========================================== [chromium] › basic-dev.test.ts:48:2 › basic dev › hydrates ===================================== [chromium] › basic-dev.test.ts:66:2 › basic dev › api ========================================== [chromium] › basic-prod.test.ts:35:2 › basic build › ssr ======================================= [chromium] › hmr.test.ts:47:2 › hmr › hmr ssr ================================================== [chromium] › hmr.test.ts:87:2 › hmr › client hmr =============================================== [chromium] › hmr.test.ts:128:2 › hmr › hmr api ================================================= 2 skipped
👀 (os: ubuntu-latest, node: 18)
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, pnpm/action-setup@v2.2.2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
👀 (os: ubuntu-latest, node: 18)
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
👀 (os: ubuntu-latest, node: 18)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
👀 (os: ubuntu-latest, node: 18)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
👀 (os: ubuntu-latest, node: 18)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
👀 (os: windows-latest, node: 18)
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, pnpm/action-setup@v2.2.2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
👀 (os: windows-latest, node: 18)
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
👀 (os: windows-latest, node: 18)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
👀 (os: windows-latest, node: 18)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
👀 (os: windows-latest, node: 18)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/