Skip to content

add api tests in build and basic dev #44

add api tests in build and basic dev

add api tests in build and basic dev #44

Triggered via push August 8, 2023 21:44
Status Failure
Total duration 2m 10s
Artifacts

test.yml

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

Annotations

4 errors, 10 warnings, and 2 notices
[chromium] โ€บ hmr.test.ts:129:2 โ€บ rendering โ€บ hmr api: test\hmr.test.ts#L159
1) [chromium] โ€บ hmr.test.ts:129:2 โ€บ rendering โ€บ hmr api ========================================== Error: expect(received).toBe(expected) // Object.is equality Expected: 200 Received: 404 157 | 158 | res = await fixture.requestDocument("/api/new"); > 159 | expect(res.status).toBe(200); | ^ 160 | expect(res.headers.get("Content-Type")).toBe("text/html"); 161 | expect(await res.text()).toBe("Hello new"); 162 | at file:///D:/a/vinxi/vinxi/test/hmr.test.ts:159:22
[chromium] โ€บ hmr.test.ts:129:2 โ€บ rendering โ€บ hmr api: test\hmr.test.ts#L159
1) [chromium] โ€บ hmr.test.ts:129:2 โ€บ rendering โ€บ hmr api ========================================== Retry #1 --------------------------------------------------------------------------------------- Error: expect(received).toBe(expected) // Object.is equality Expected: 200 Received: 404 157 | 158 | res = await fixture.requestDocument("/api/new"); > 159 | expect(res.status).toBe(200); | ^ 160 | expect(res.headers.get("Content-Type")).toBe("text/html"); 161 | expect(await res.text()).toBe("Hello new"); 162 | at file:///D:/a/vinxi/vinxi/test/hmr.test.ts:159:22
[chromium] โ€บ hmr.test.ts:129:2 โ€บ rendering โ€บ hmr api: test\hmr.test.ts#L159
1) [chromium] โ€บ hmr.test.ts:129:2 โ€บ rendering โ€บ hmr api ========================================== Retry #2 --------------------------------------------------------------------------------------- Error: expect(received).toBe(expected) // Object.is equality Expected: 200 Received: 404 157 | 158 | res = await fixture.requestDocument("/api/new"); > 159 | expect(res.status).toBe(200); | ^ 160 | expect(res.headers.get("Content-Type")).toBe("text/html"); 161 | expect(await res.text()).toBe("Hello new"); 162 | at file:///D:/a/vinxi/vinxi/test/hmr.test.ts:159:22
๐Ÿ‘€ (os: windows-latest, node: 18)
Process completed with exit code 1.
๐Ÿ‘€ (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/
๐ŸŽญ Playwright Run Summary
9 passed (26s)
๐ŸŽญ Playwright Run Summary
1 failed [chromium] โ€บ hmr.test.ts:129:2 โ€บ rendering โ€บ hmr api =========================================== 8 passed (48s)