chore(deps): update vitest monorepo to v3 (major) #368
Annotations
10 errors
Test:
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:
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:
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:
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:
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:
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:
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:
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:
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:
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
|
Loading