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

Prevent Karma from timing out when an assertion fails on a VTU wrapper #696

Closed
wants to merge 1 commit into from

Conversation

matthew-white
Copy link
Member

@matthew-white matthew-white commented Jan 12, 2023

Sometimes, an assertion failure will cause Karma to time out and exit, which can add friction to testing. I thought it was maybe a bug with Should.js, but I think it's something more specific, that Should.js is doing something that Vue or Vue Test Utils doesn't like. These timeouts seem to happen when an assertion fails on a Vue Test Utils wrapper specifically (or an array of wrappers). I'm not quite sure why that is (maybe Should.js is traversing the wrapper, and the wrapper contains a recursive cycle?). And my solution here still needs more validation. But so far, it looks like this change prevents these timeouts.

@matthew-white
Copy link
Member Author

We're going to be replacing Should.js with Chai as part of #671. This issue doesn't seem to be a problem with Chai. If an assertion fails on a Vue Test Utils wrapper, the test doesn't time out, and the error message is what I'd expect.

@matthew-white matthew-white deleted the clean-fail branch May 24, 2024 21:45
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.

None yet

1 participant