Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: better errors for async find #641

Merged
merged 1 commit into from Jun 3, 2021

Conversation

lmiller1990
Copy link
Member

@lmiller1990 lmiller1990 commented Jun 2, 2021

resolves #638

Eh, a bit "smart" but avoids having to duplicate everything like in Test Utils v1, which over the years has become tough to maintain.

case 'then':
// allows for better errors when wrapping `find` in `await`
// https://github.com/vuejs/vue-test-utils-next/issues/638
return
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if we need catch, too. Not sure if there is a use case.

@lmiller1990 lmiller1990 merged commit b0c1c66 into master Jun 3, 2021
@lmiller1990 lmiller1990 deleted the better-errors-with-find-async branch June 3, 2021 12:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2.0.0-rc.6 Poor error handling with promises & empty wrapper
2 participants