fix: reset req.url for vite middleware #261
Annotations
11 errors, 10 warnings, and 2 notices
[chromium] › basic-prod.test.ts:62:2 › basic build › api:
test/basic-prod.test.ts#L64
1) [chromium] › basic-prod.test.ts:62:2 › basic build › api ──────────────────────────────────────
Error: expect(received).toBe(expected) // Object.is equality
Expected: 200
Received: 500
62 | test("api", async () => {
63 | let res = await fixture.requestDocument("/api/hello");
> 64 | expect(res.status).toBe(200);
| ^
65 | expect(res.headers.get("Content-Type")).toBe("text/html");
66 | expect(await res.text()).toBe("Hello world");
67 | });
at /home/runner/work/vinxi/vinxi/test/basic-prod.test.ts:64:22
|
[chromium] › basic-prod.test.ts:62:2 › basic build › api:
test/basic-prod.test.ts#L64
1) [chromium] › basic-prod.test.ts:62:2 › basic build › api ──────────────────────────────────────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toBe(expected) // Object.is equality
Expected: 200
Received: 500
62 | test("api", async () => {
63 | let res = await fixture.requestDocument("/api/hello");
> 64 | expect(res.status).toBe(200);
| ^
65 | expect(res.headers.get("Content-Type")).toBe("text/html");
66 | expect(await res.text()).toBe("Hello world");
67 | });
at /home/runner/work/vinxi/vinxi/test/basic-prod.test.ts:64:22
|
[chromium] › basic-prod.test.ts:62:2 › basic build › api:
test/basic-prod.test.ts#L64
1) [chromium] › basic-prod.test.ts:62:2 › basic build › api ──────────────────────────────────────
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toBe(expected) // Object.is equality
Expected: 200
Received: 500
62 | test("api", async () => {
63 | let res = await fixture.requestDocument("/api/hello");
> 64 | expect(res.status).toBe(200);
| ^
65 | expect(res.headers.get("Content-Type")).toBe("text/html");
66 | expect(await res.text()).toBe("Hello world");
67 | });
at /home/runner/work/vinxi/vinxi/test/basic-prod.test.ts:64:22
|
[chromium] › srv-fn.test.ts:32:2 › srv-fn-dev › spa:
test/helpers/playwright-fixture.ts#L115
2) [chromium] › srv-fn.test.ts:32:2 › srv-fn-dev › spa ───────────────────────────────────────────
Error: Can't find element for: [data-test-id=button]
at helpers/playwright-fixture.ts:115
113 | let el = await this.page.$(selector);
114 | if (!el) {
> 115 | throw new Error(`Can't find element for: ${selector}`);
| ^
116 | }
117 | await doAndWait(this.page, () => el.click());
118 | }
at PlaywrightFixture.clickElement (/home/runner/work/vinxi/vinxi/test/helpers/playwright-fixture.ts:115:13)
at /home/runner/work/vinxi/vinxi/test/srv-fn.test.ts:37:3
|
[chromium] › srv-fn.test.ts:32:2 › srv-fn-dev › spa:
test/helpers/playwright-fixture.ts#L115
2) [chromium] › srv-fn.test.ts:32:2 › srv-fn-dev › spa ───────────────────────────────────────────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: Can't find element for: [data-test-id=button]
at helpers/playwright-fixture.ts:115
113 | let el = await this.page.$(selector);
114 | if (!el) {
> 115 | throw new Error(`Can't find element for: ${selector}`);
| ^
116 | }
117 | await doAndWait(this.page, () => el.click());
118 | }
at PlaywrightFixture.clickElement (/home/runner/work/vinxi/vinxi/test/helpers/playwright-fixture.ts:115:13)
at /home/runner/work/vinxi/vinxi/test/srv-fn.test.ts:37:3
|
[chromium] › srv-fn.test.ts:32:2 › srv-fn-dev › spa:
test/helpers/playwright-fixture.ts#L115
2) [chromium] › srv-fn.test.ts:32:2 › srv-fn-dev › spa ───────────────────────────────────────────
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: Can't find element for: [data-test-id=button]
at helpers/playwright-fixture.ts:115
113 | let el = await this.page.$(selector);
114 | if (!el) {
> 115 | throw new Error(`Can't find element for: ${selector}`);
| ^
116 | }
117 | await doAndWait(this.page, () => el.click());
118 | }
at PlaywrightFixture.clickElement (/home/runner/work/vinxi/vinxi/test/helpers/playwright-fixture.ts:115:13)
at /home/runner/work/vinxi/vinxi/test/srv-fn.test.ts:37:3
|
👀 (os: ubuntu-latest, node: 18)
Process completed with exit code 1.
|
[chromium] › srv-fn.test.ts:32:2 › srv-fn-dev › spa:
test\helpers\playwright-fixture.ts#L115
1) [chromium] › srv-fn.test.ts:32:2 › srv-fn-dev › spa ───────────────────────────────────────────
Error: Can't find element for: [data-test-id=button]
at helpers\playwright-fixture.ts:115
113 | let el = await this.page.$(selector);
114 | if (!el) {
> 115 | throw new Error(`Can't find element for: ${selector}`);
| ^
116 | }
117 | await doAndWait(this.page, () => el.click());
118 | }
at PlaywrightFixture.clickElement (D:\a\vinxi\vinxi\test\helpers\playwright-fixture.ts:115:13)
at D:\a\vinxi\vinxi\test\srv-fn.test.ts:37:3
|
[chromium] › srv-fn.test.ts:32:2 › srv-fn-dev › spa:
test\helpers\playwright-fixture.ts#L115
1) [chromium] › srv-fn.test.ts:32:2 › srv-fn-dev › spa ───────────────────────────────────────────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: Can't find element for: [data-test-id=button]
at helpers\playwright-fixture.ts:115
113 | let el = await this.page.$(selector);
114 | if (!el) {
> 115 | throw new Error(`Can't find element for: ${selector}`);
| ^
116 | }
117 | await doAndWait(this.page, () => el.click());
118 | }
at PlaywrightFixture.clickElement (D:\a\vinxi\vinxi\test\helpers\playwright-fixture.ts:115:13)
at D:\a\vinxi\vinxi\test\srv-fn.test.ts:37:3
|
[chromium] › srv-fn.test.ts:32:2 › srv-fn-dev › spa:
test\helpers\playwright-fixture.ts#L115
1) [chromium] › srv-fn.test.ts:32:2 › srv-fn-dev › spa ───────────────────────────────────────────
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: Can't find element for: [data-test-id=button]
at helpers\playwright-fixture.ts:115
113 | let el = await this.page.$(selector);
114 | if (!el) {
> 115 | throw new Error(`Can't find element for: ${selector}`);
| ^
116 | }
117 | await doAndWait(this.page, () => el.click());
118 | }
at PlaywrightFixture.clickElement (D:\a\vinxi\vinxi\test\helpers\playwright-fixture.ts:115:13)
at D:\a\vinxi\vinxi\test\srv-fn.test.ts:37:3
|
👀 (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
2 failed
[chromium] › basic-prod.test.ts:62:2 › basic build › api ───────────────────────────────────────
[chromium] › srv-fn.test.ts:32:2 › srv-fn-dev › spa ────────────────────────────────────────────
12 passed (55.5s)
|
🎭 Playwright Run Summary
1 failed
[chromium] › srv-fn.test.ts:32:2 › srv-fn-dev › spa ────────────────────────────────────────────
13 passed (1.1m)
|