fix: empty lists don't get returned correctly from the api #35
Annotations
3 errors and 1 notice
[setup] › auth.setup.ts:7:1 › authenticate:
frontend/tests/utils/cleanup.util.ts#L4
1) [setup] › auth.setup.ts:7:1 › authenticate ────────────────────────────────────────────────────
TypeError: Invalid URL
at utils/cleanup.util.ts:4
2 |
3 | export async function cleanupBackend() {
> 4 | await axios.post('/api/test/reset');
| ^
5 | }
6 |
at dispatchHttpRequest (/home/runner/work/pocket-id/pocket-id/frontend/node_modules/axios/lib/adapters/http.js:232:20)
at /home/runner/work/pocket-id/pocket-id/frontend/node_modules/axios/lib/adapters/http.js:152:5
at wrapAsync (/home/runner/work/pocket-id/pocket-id/frontend/node_modules/axios/lib/adapters/http.js:132:10)
at http (/home/runner/work/pocket-id/pocket-id/frontend/node_modules/axios/lib/adapters/http.js:170:10)
at Axios.dispatchRequest (/home/runner/work/pocket-id/pocket-id/frontend/node_modules/axios/lib/core/dispatchRequest.js:51:10)
at Axios._request (/home/runner/work/pocket-id/pocket-id/frontend/node_modules/axios/lib/core/Axios.js:173:33)
at Axios.request (/home/runner/work/pocket-id/pocket-id/frontend/node_modules/axios/lib/core/Axios.js:40:25)
at Axios.httpMethod (/home/runner/work/pocket-id/pocket-id/frontend/node_modules/axios/lib/core/Axios.js:212:19)
at Function.post (/home/runner/work/pocket-id/pocket-id/frontend/node_modules/axios/lib/helpers/bind.js:5:15)
at cleanupBackend (/home/runner/work/pocket-id/pocket-id/frontend/tests/utils/cleanup.util.ts:4:14)
at /home/runner/work/pocket-id/pocket-id/frontend/tests/auth.setup.ts:8:11
at Axios.request (/home/runner/work/pocket-id/pocket-id/frontend/node_modules/axios/lib/core/Axios.js:45:41)
at cleanupBackend (/home/runner/work/pocket-id/pocket-id/frontend/tests/utils/cleanup.util.ts:4:2)
at /home/runner/work/pocket-id/pocket-id/frontend/tests/auth.setup.ts:8:5
|
[setup] › auth.setup.ts:7:1 › authenticate:
frontend/tests/utils/cleanup.util.ts#L4
1) [setup] › auth.setup.ts:7:1 › authenticate ────────────────────────────────────────────────────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
TypeError: Invalid URL
at utils/cleanup.util.ts:4
2 |
3 | export async function cleanupBackend() {
> 4 | await axios.post('/api/test/reset');
| ^
5 | }
6 |
at dispatchHttpRequest (/home/runner/work/pocket-id/pocket-id/frontend/node_modules/axios/lib/adapters/http.js:232:20)
at /home/runner/work/pocket-id/pocket-id/frontend/node_modules/axios/lib/adapters/http.js:152:5
at wrapAsync (/home/runner/work/pocket-id/pocket-id/frontend/node_modules/axios/lib/adapters/http.js:132:10)
at http (/home/runner/work/pocket-id/pocket-id/frontend/node_modules/axios/lib/adapters/http.js:170:10)
at Axios.dispatchRequest (/home/runner/work/pocket-id/pocket-id/frontend/node_modules/axios/lib/core/dispatchRequest.js:51:10)
at Axios._request (/home/runner/work/pocket-id/pocket-id/frontend/node_modules/axios/lib/core/Axios.js:173:33)
at Axios.request (/home/runner/work/pocket-id/pocket-id/frontend/node_modules/axios/lib/core/Axios.js:40:25)
at Axios.httpMethod (/home/runner/work/pocket-id/pocket-id/frontend/node_modules/axios/lib/core/Axios.js:212:19)
at Function.post (/home/runner/work/pocket-id/pocket-id/frontend/node_modules/axios/lib/helpers/bind.js:5:15)
at cleanupBackend (/home/runner/work/pocket-id/pocket-id/frontend/tests/utils/cleanup.util.ts:4:14)
at /home/runner/work/pocket-id/pocket-id/frontend/tests/auth.setup.ts:8:11
at Axios.request (/home/runner/work/pocket-id/pocket-id/frontend/node_modules/axios/lib/core/Axios.js:45:41)
at cleanupBackend (/home/runner/work/pocket-id/pocket-id/frontend/tests/utils/cleanup.util.ts:4:2)
at /home/runner/work/pocket-id/pocket-id/frontend/tests/auth.setup.ts:8:5
|
build-and-test
Process completed with exit code 1.
|
🎭 Playwright Run Summary
1 failed
[setup] › auth.setup.ts:7:1 › authenticate ─────────────────────────────────────────────────────
23 did not run
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
playwright-report
Expired
|
3.71 KB |
|