test-utils
test-utils copied to clipboard
Hydration does not change accordingly when used registerEndpoint + useLazyAsync
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