Skip to content

chore(deps): update vitest monorepo to v3 (major) #368

chore(deps): update vitest monorepo to v3 (major)

chore(deps): update vitest monorepo to v3 (major) #368

Triggered via pull request February 25, 2025 20:40
Status Failure
Total duration 26s
Artifacts

ci.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

21 errors
lint
Process completed with exit code 2.
test/index.test.ts > haul > calls fetch: test/index.test.ts#L15
AssertionError: promise rejected "TypeError: Failed to parse URL from /api/" instead of resolving ❯ test/index.test.ts:15:29 Caused by: Caused by: TypeError: Failed to parse URL from /api/ Caused by: Caused by: TypeError: Invalid URL ❯ node_modules/.pnpm/[email protected][email protected]/node_modules/vitest-fetch-mock/src/index.ts:62:21 ❯ _fetch src/index.ts:89:12 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { input: '/api/', code: 'ERR_INVALID_URL' }
test/index.test.ts > haul > can use a number: test/index.test.ts#L22
AssertionError: promise rejected "TypeError: Failed to parse URL from /api/0" instead of resolving ❯ test/index.test.ts:22:28 Caused by: Caused by: TypeError: Failed to parse URL from /api/0 Caused by: Caused by: TypeError: Invalid URL ❯ node_modules/.pnpm/[email protected][email protected]/node_modules/vitest-fetch-mock/src/index.ts:62:21 ❯ _fetch src/index.ts:89:12 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { input: '/api/0', code: 'ERR_INVALID_URL' }
test/index.test.ts > haul > works with non trailing slashes: test/index.test.ts#L29
AssertionError: promise rejected "TypeError: Failed to parse URL from /api/2" instead of resolving ❯ test/index.test.ts:29:31 Caused by: Caused by: TypeError: Failed to parse URL from /api/2 Caused by: Caused by: TypeError: Invalid URL ❯ node_modules/.pnpm/[email protected][email protected]/node_modules/vitest-fetch-mock/src/index.ts:62:21 ❯ _fetch src/index.ts:89:12 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { input: '/api/2', code: 'ERR_INVALID_URL' }
test/index.test.ts > haul > can use get without parameters: test/index.test.ts#L36
AssertionError: promise rejected "TypeError: Failed to parse URL from /api/" instead of resolving ❯ test/index.test.ts:36:27 Caused by: Caused by: TypeError: Failed to parse URL from /api/ Caused by: Caused by: TypeError: Invalid URL ❯ node_modules/.pnpm/[email protected][email protected]/node_modules/vitest-fetch-mock/src/index.ts:62:21 ❯ _fetch src/index.ts:89:12 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { input: '/api/', code: 'ERR_INVALID_URL' }
test/index.test.ts > haul > allows an absolute base: test/index.test.ts#L43
AssertionError: promise rejected "Error: Not Found { …(2) }" instead of resolving ❯ test/index.test.ts:43:29 Caused by: Caused by: Error: Not Found ❯ src/index.ts:105:21 ❯ test/index.test.ts:43:5 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { response: { constructor: 'Function<Response>', type: 'basic', url: 'http://example.com/api/', redirected: false, status: 404, ok: false, statusText: 'Not Found', headers: { constructor: 'Function<Headers>', append: 'Function<append>', delete: 'Function<delete>', get: 'Function<get>', has: 'Function<has>', set: 'Function<set>', getSetCookie: 'Function<getSetCookie>', keys: 'Function<keys>', values: 'Function<values>', entries: 'Function<entries>', forEach: 'Function<forEach>' }, body: { constructor: 'Function<ReadableStream>', locked: true, cancel: 'Function<cancel>', getReader: 'Function<getReader>', pipeThrough: 'Function<pipeThrough>', pipeTo: 'Function<pipeTo>', tee: 'Function<tee>', values: 'Function<values>' }, bodyUsed: true, clone: 'Function<clone>', blob: 'Function<blob>', arrayBuffer: 'Function<arrayBuffer>', text: 'Function<text>', json: 'Function<json>', formData: 'Function<formData>' }, body: null }
test/index.test.ts > haul > returns null on 204: test/index.test.ts#L50
AssertionError: promise rejected "TypeError: Failed to parse URL from /api/" instead of resolving ❯ test/index.test.ts:50:29 Caused by: Caused by: TypeError: Failed to parse URL from /api/ Caused by: Caused by: TypeError: Invalid URL ❯ node_modules/.pnpm/[email protected][email protected]/node_modules/vitest-fetch-mock/src/index.ts:62:21 ❯ _fetch src/index.ts:89:12 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { input: '/api/', code: 'ERR_INVALID_URL' }
test/index.test.ts > haul > calls delete: test/index.test.ts#L57
AssertionError: promise rejected "TypeError: Failed to parse URL from /api/" instead of resolving ❯ test/index.test.ts:57:32 Caused by: Caused by: TypeError: Failed to parse URL from /api/ Caused by: Caused by: TypeError: Invalid URL ❯ node_modules/.pnpm/[email protected][email protected]/node_modules/vitest-fetch-mock/src/index.ts:62:21 ❯ _fetch src/index.ts:89:12 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { input: '/api/', code: 'ERR_INVALID_URL' }
test/index.test.ts > haul > calls delete without parameters: test/index.test.ts#L64
AssertionError: promise rejected "TypeError: Failed to parse URL from /api/" instead of resolving ❯ test/index.test.ts:64:30 Caused by: Caused by: TypeError: Failed to parse URL from /api/ Caused by: Caused by: TypeError: Invalid URL ❯ node_modules/.pnpm/[email protected][email protected]/node_modules/vitest-fetch-mock/src/index.ts:62:21 ❯ _fetch src/index.ts:89:12 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { input: '/api/', code: 'ERR_INVALID_URL' }
test/index.test.ts > haul > rejects if not ok: test/index.test.ts#L71
AssertionError: expected TypeError: Failed to parse URL from /api/ to match object { response: Anything } - Expected + Received - { - "response": Anything, + TypeError { + "message": "Failed to parse URL from /api/", + "cause": TypeError { + "message": "Invalid URL", + "input": "/api/", + "code": "ERR_INVALID_URL", + }, } ❯ test/index.test.ts:71:5
test/index.test.ts > haul > serializes body on error: test/index.test.ts#L79
AssertionError: expected TypeError: Failed to parse URL from /api/ to match object { response: Anything, …(1) } - Expected + Received - { - "body": { - "message": "nope", + TypeError { + "message": "Failed to parse URL from /api/", + "cause": TypeError { + "message": "Invalid URL", + "input": "/api/", + "code": "ERR_INVALID_URL", }, - "response": Anything, } ❯ test/index.test.ts:79:5
test/index.test.ts > haul > calls fetch: test/index.test.ts#L15
AssertionError: promise rejected "TypeError: Failed to parse URL from /api/" instead of resolving ❯ test/index.test.ts:15:29 Caused by: Caused by: TypeError: Failed to parse URL from /api/ Caused by: Caused by: TypeError: Invalid URL ❯ node_modules/.pnpm/[email protected][email protected]/node_modules/vitest-fetch-mock/src/index.ts:62:21 ❯ _fetch src/index.ts:89:12 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { input: '/api/', code: 'ERR_INVALID_URL' }
test/index.test.ts > haul > can use a number: test/index.test.ts#L22
AssertionError: promise rejected "TypeError: Failed to parse URL from /api/0" instead of resolving ❯ test/index.test.ts:22:28 Caused by: Caused by: TypeError: Failed to parse URL from /api/0 Caused by: Caused by: TypeError: Invalid URL ❯ node_modules/.pnpm/[email protected][email protected]/node_modules/vitest-fetch-mock/src/index.ts:62:21 ❯ _fetch src/index.ts:89:12 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { input: '/api/0', code: 'ERR_INVALID_URL' }
test/index.test.ts > haul > works with non trailing slashes: test/index.test.ts#L29
AssertionError: promise rejected "TypeError: Failed to parse URL from /api/2" instead of resolving ❯ test/index.test.ts:29:31 Caused by: Caused by: TypeError: Failed to parse URL from /api/2 Caused by: Caused by: TypeError: Invalid URL ❯ node_modules/.pnpm/[email protected][email protected]/node_modules/vitest-fetch-mock/src/index.ts:62:21 ❯ _fetch src/index.ts:89:12 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { input: '/api/2', code: 'ERR_INVALID_URL' }
test/index.test.ts > haul > can use get without parameters: test/index.test.ts#L36
AssertionError: promise rejected "TypeError: Failed to parse URL from /api/" instead of resolving ❯ test/index.test.ts:36:27 Caused by: Caused by: TypeError: Failed to parse URL from /api/ Caused by: Caused by: TypeError: Invalid URL ❯ node_modules/.pnpm/[email protected][email protected]/node_modules/vitest-fetch-mock/src/index.ts:62:21 ❯ _fetch src/index.ts:89:12 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { input: '/api/', code: 'ERR_INVALID_URL' }
test/index.test.ts > haul > allows an absolute base: test/index.test.ts#L43
AssertionError: promise rejected "Error: Not Found { …(2) }" instead of resolving ❯ test/index.test.ts:43:29 Caused by: Caused by: Error: Not Found ❯ src/index.ts:105:21 ❯ test/index.test.ts:43:5 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { response: { constructor: 'Function<Response>', type: 'basic', url: 'http://example.com/api/', redirected: false, status: 404, ok: false, statusText: 'Not Found', headers: { constructor: 'Function<Headers>', append: 'Function<append>', delete: 'Function<delete>', get: 'Function<get>', has: 'Function<has>', set: 'Function<set>', getSetCookie: 'Function<getSetCookie>', keys: 'Function<keys>', values: 'Function<values>', entries: 'Function<entries>', forEach: 'Function<forEach>' }, body: { constructor: 'Function<ReadableStream>', locked: true, cancel: 'Function<cancel>', getReader: 'Function<getReader>', pipeThrough: 'Function<pipeThrough>', pipeTo: 'Function<pipeTo>', tee: 'Function<tee>', values: 'Function<values>' }, bodyUsed: true, clone: 'Function<clone>', blob: 'Function<blob>', arrayBuffer: 'Function<arrayBuffer>', text: 'Function<text>', json: 'Function<json>', formData: 'Function<formData>' }, body: null }
test/index.test.ts > haul > returns null on 204: test/index.test.ts#L50
AssertionError: promise rejected "TypeError: Failed to parse URL from /api/" instead of resolving ❯ test/index.test.ts:50:29 Caused by: Caused by: TypeError: Failed to parse URL from /api/ Caused by: Caused by: TypeError: Invalid URL ❯ node_modules/.pnpm/[email protected][email protected]/node_modules/vitest-fetch-mock/src/index.ts:62:21 ❯ _fetch src/index.ts:89:12 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { input: '/api/', code: 'ERR_INVALID_URL' }
test/index.test.ts > haul > calls delete: test/index.test.ts#L57
AssertionError: promise rejected "TypeError: Failed to parse URL from /api/" instead of resolving ❯ test/index.test.ts:57:32 Caused by: Caused by: TypeError: Failed to parse URL from /api/ Caused by: Caused by: TypeError: Invalid URL ❯ node_modules/.pnpm/[email protected][email protected]/node_modules/vitest-fetch-mock/src/index.ts:62:21 ❯ _fetch src/index.ts:89:12 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { input: '/api/', code: 'ERR_INVALID_URL' }
test/index.test.ts > haul > calls delete without parameters: test/index.test.ts#L64
AssertionError: promise rejected "TypeError: Failed to parse URL from /api/" instead of resolving ❯ test/index.test.ts:64:30 Caused by: Caused by: TypeError: Failed to parse URL from /api/ Caused by: Caused by: TypeError: Invalid URL ❯ node_modules/.pnpm/[email protected][email protected]/node_modules/vitest-fetch-mock/src/index.ts:62:21 ❯ _fetch src/index.ts:89:12 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { input: '/api/', code: 'ERR_INVALID_URL' }
test/index.test.ts > haul > rejects if not ok: test/index.test.ts#L71
AssertionError: expected TypeError: Failed to parse URL from /api/ to match object { response: Anything } - Expected + Received - { - "response": Anything, + TypeError { + "message": "Failed to parse URL from /api/", + "cause": TypeError { + "message": "Invalid URL", + "input": "/api/", + "code": "ERR_INVALID_URL", + }, } ❯ test/index.test.ts:71:5
test/index.test.ts > haul > serializes body on error: test/index.test.ts#L79
AssertionError: expected TypeError: Failed to parse URL from /api/ to match object { response: Anything, …(1) } - Expected + Received - { - "body": { - "message": "nope", + TypeError { + "message": "Failed to parse URL from /api/", + "cause": TypeError { + "message": "Invalid URL", + "input": "/api/", + "code": "ERR_INVALID_URL", }, - "response": Anything, } ❯ test/index.test.ts:79:5