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
It does work when using test-utils in v3.14. Trying to find alternatives I've also noticed that trying to catch errors using errorHandler also stopped working:
const component = await mountSuspended(MyComponent, {
global: {
config: {
errorHandler(err: unknown) {
// message displayed when using v3.14, not when using v3.15.
console.log("error captured : ", err);
},
},
}
});
It work when I replace await mountSuspended with mount from vue test-utils.
Additional context
No response
Logs
The text was updated successfully, but these errors were encountered:
Environment
Reproduction
When using test-utils v3.14 the myComponent.nuxt.spec.ts test pass:
https://stackblitz.com/edit/github-kucyss44?file=test%2FmyComponent.nuxt.spec.ts
When using test-utils v3.15 the myComponent.nuxt.spec.ts test fails:
https://stackblitz.com/edit/github-kucyss44-zywdn3sh?file=test%2FmyComponent.nuxt.spec.ts
Describe the bug
When using nuxt test-utils in v3.15, I can no longer catch errors thrown in the tested component using the errorCaptured option of mountSuspended:
It does work when using test-utils in v3.14. Trying to find alternatives I've also noticed that trying to catch errors using errorHandler also stopped working:
It work when I replace
await mountSuspended
withmount
from vue test-utils.Additional context
No response
Logs
The text was updated successfully, but these errors were encountered: