-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
@vitest/coverage-v8@1.3.1 hangs indefinitely with Nestjs #5252
Comments
Does it hang with |
It hangs with |
I can reproduce the hang. Something as simple as removing
-const DECORATOR_METADATA_PATTERN = /_ts_metadata\("design:paramtypes"(\s|.)+?]\),/g
+const DECORATOR_METADATA_PATTERN = /_ts_metadata\("design:paramtypes"(\s|.)+?]\)/g Could you @noahw3 or @wataruian try if that fixes the hangs in real world Nestjs project by modifying the |
@AriPerkkio removing the |
Yes, can confirm that adjusting the regex no longer hangs in my full project. |
Describe the bug
Using the
@vitest/coverage-v8
package with the latest version hangs while mocking a project using nestjs. Output printsJUNIT report written to [path]/coverage/unit/junit.xml
and then the process does not exit, with no coverage report being output. This does not occur as of version 1.3.0. I'm guessing that it has something to do with the changes made to decorators in #5206, as Nest makes heavy use of decorators.Reproduction
Technically this version does resolve after hanging for ~30 seconds, but hopefully that should be enough to highlight the issue.
https://github.com/noahw3/vitest/tree/main/examples/basic
System Info
Used Package Manager
pnpm
Validations
The text was updated successfully, but these errors were encountered: