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

Hydration does not change accordingly when used registerEndpoint + useLazyAsync

Open lassediercks opened this issue 1 year ago • 0 comments

Environment


  • Operating System: Linux
  • Node Version: v18.18.0
  • Nuxt Version: 3.10.2
  • CLI Version: 3.10.1
  • Nitro Version: 2.8.1
  • Package Manager: [email protected]
  • Builder: -
  • User Config: devtools, modules
  • Runtime Modules: @nuxt/test-utils/[email protected]
  • Build Modules: -

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

lassediercks avatar Feb 20 '24 16:02 lassediercks