test-utils icon indicating copy to clipboard operation
test-utils copied to clipboard

error.vue can't be tested

Open martinsjek opened this issue 11 months ago • 3 comments

Environment

StackBlitz

Reproduction

https://stackblitz.com/edit/github-vy6psx-sn3lfr?file=.nuxtignore,error.vue,tests%2Ferror.spec.ts

Describe the bug

I get this error: [Vue Router warn]: No match found for location with path "/123" [Vue warn]: Cannot mutate <script setup> binding "error" from Options API. at <MountSuspendedComponent error= { url: '/123', statusCode: 404, statusMessage: 'Not Found', message: 'Error', description: '' } > at <MountSuspendedHelper> at <Anonymous ref="VTU_COMPONENT" > at <VTUROOT> [Vue warn]: Unhandled error during execution of render function at <MountSuspendedComponent error= { url: '/123', statusCode: 404, statusMessage: 'Not Found', message: 'Error', description: '' } > at <MountSuspendedHelper> at <Anonymous ref="VTU_COMPONENT" > at <VTUROOT>

Additional context

You can get this error running: npm run test ./tests/error.spec.ts

Logs

No response

martinsjek avatar Feb 27 '24 09:02 martinsjek