nuxt / test-utils

🧪 Test utilities for Nuxt
http://nuxt.com/docs/getting-started/testing
MIT License
287 stars 75 forks source link

Hydration does not change accordingly when used registerEndpoint + useLazyAsync #765

Open lassediercks opened 4 months ago

lassediercks commented 4 months ago

Environment


Reproduction

Isolated reproduction:

https://stackblitz.com/edit/nuxt-starter-xti8mf?file=app.vue,package.json,app.spec.ts,components%2FFetching.spec.ts,components%2FFetching.vue,nuxt.config.ts

run yarn vitest to see a failed spec that imo shouldve succeed

Describe the bug

When using registerEndpoint to mock an api response I'd expect to be able to validate the correct dom is displayed based on the mock response.

Additional context

No response

Logs

No response