-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
TypeError: Cannot read properties of null (reading 'transformMode') #5071
Comments
Experiencing the same here after upgrading from |
Hello @MichaelBrandt4994. Please provide a minimal reproduction using a GitHub repository or StackBlitz. Issues marked with |
will try a reproduction until friday |
I have the same issue, I think the test is not tearing down correctly because there are unfinished promises. I have a very simple react component with two simple tests, the only particularity is there is an image with a source svg supposed to be in the public folder : It's very hard to conclude what the exact issue is because the error occurs very rarely. Also the error only happens when running with other test suits in parallel, and I'm using |
We are experiencing the same issue, makes our CI tests flaky, as we are not able to make a fully reproducible example |
It seems for us it was a problem of how we were mocking the vue-router in some unit tests. In some components we were using All tests are now successfull even after multiple retries. What helped me, was setting the retry to 1, then i saw in our tests a warning related to the vue-router, which i didn't saw before. Maybe the warning was not printed out, because it failed directly. In the end it seems to be a problem of how we were testing. But still, on the version |
We are not using vue-router, so it is probably not specific to this library |
Can confirm that I no longer have this issue after updating to 1.3.0 👍 |
Describe the bug
When executing vitest we receive the following error
Sometimes the error doesn't show up and our tests are passing.
Here is our vitest.config.ts
Reproduction
System Info
Used Package Manager
npm
Validations
The text was updated successfully, but these errors were encountered: