You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
test(validation): unmount wrappers to fix pending fetch errors
Vitest was reporting 13 unhandled rejections with
'Closing rpc while fetch was pending' in Validation.spec.ts.
Root cause: Vue instances were never unmounted between tests,
so their beforeUnmount hooks never ran — isActiveView stayed
true and background microtasks (validate, refreshAfterAsyncSigning)
kept firing after the worker started winding down.
Fixes:
- Add outer afterEach(() => wrapper.unmount()) for the main wrapper
- Track local wrappers in the created() describe at scope level
and unmount them in afterEach
- Unmount the inline localWrapper in the handleValidationSuccess
describe immediately after use
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
0 commit comments