add api tests in build and basic dev #44
Annotations
4 errors, 5 warnings, and 1 notice
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
|
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
|
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
|
|
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/
|
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/
|
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/
|
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/
|
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/
|
|
The logs for this run have expired and are no longer available.
Loading