🚧 getting our action going #13
Annotations
4 errors and 1 warning
../test/user.test.ts > /api/me > should 401:
test/user.test.ts#L66
TypeError: Cannot read properties of undefined (reading 'status')
❯ ../test/user.test.ts:66:29
|
../test/user.test.ts > /api/me > returns the currently loggeed in user:
test/user.test.ts#L55
FetchError: [POST] "/api/test/session": <no response> Failed to parse URL from /api/test/session
❯ Module.$fetch2 ../node_modules/.pnpm/[email protected]/node_modules/ofetch/dist/shared/ofetch.37386b05.mjs:268:15
❯ actingAs ../test/user.test.ts:55:20
❯ ../test/user.test.ts:71:21
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { request: '/api/test/session', options: { method: 'POST', body: '{"id":"1","hash":"bio_708518602820e26b6895fb48a65449e68e8320e7feddc89d0d6f54ac5053e663"}', 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>' } }, response: undefined, data: undefined, status: undefined, statusCode: undefined, statusText: undefined, statusMessage: undefined }
Caused by: Caused by: TypeError: Failed to parse URL from /api/test/session
Caused by: Caused by: TypeError: Invalid URL
❯ new URL ../node_modules/.pnpm/[email protected]/node_modules/happy-dom/src/url/URL.ts:9:15
❯ $fetchRaw2 ../node_modules/.pnpm/[email protected]/node_modules/ofetch/dist/shared/ofetch.37386b05.mjs:222:32
❯ Module.$fetch2 ../node_modules/.pnpm/[email protected]/node_modules/ofetch/dist/shared/ofetch.37386b05.mjs:268:21
❯ Module.$fetch ../node_modules/.pnpm/@nuxt[email protected][email protected][email protected][email protected][email protected]_magicast@0_kd7xjbg6w2kbue4xqazvzk2unm/node_modules/@nuxt/test-utils/dist/shared/test-utils.BumFEtZ8.mjs:142:32
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { input: '/api/test/session', code: 'ERR_INVALID_URL' }
|
../test/user.test.ts > /api/user:
node_modules/.pnpm/@[email protected][email protected][email protected][email protected][email protected]_magicast@0_kd7xjbg6w2kbue4xqazvzk2unm/node_modules/@nuxt/test-utils/dist/shared/test-utils.BumFEtZ8.mjs#L54
Error: No context is available. (Forgot calling setup or createContext?)
❯ Module.useTestContext ../node_modules/.pnpm/@nuxt[email protected][email protected][email protected][email protected][email protected]_magicast@0_kd7xjbg6w2kbue4xqazvzk2unm/node_modules/@nuxt/test-utils/dist/shared/test-utils.BumFEtZ8.mjs:54:11
❯ loadFixture ../node_modules/.pnpm/@nuxt[email protected][email protected][email protected][email protected][email protected]_magicast@0_kd7xjbg6w2kbue4xqazvzk2unm/node_modules/@nuxt/test-utils/dist/shared/test-utils.BZS9cHDP.mjs:88:37
❯ setup2 ../node_modules/.pnpm/@nuxt[email protected][email protected][email protected][email protected][email protected]_magicast@0_kd7xjbg6w2kbue4xqazvzk2unm/node_modules/@nuxt/test-utils/dist/shared/test-utils.BZS9cHDP.mjs:180:13
|
test
Process completed with exit code 1.
|
test
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, pnpm/action-setup@v2, actions/cache@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|