-
-
Notifications
You must be signed in to change notification settings - Fork 86
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
Context buttons at wrong line when returning Promise from test #464
Comments
It is a malicious bot. Please, do not install anything from there. |
This is not the full output. Please, provide the full output. |
@sheremet-va I reported the bot already.
|
@sheremet-va I realized the minimal repro I sent is not enough. I am trying to reproduce the issue with a new test spec, but couldn't find yet what triggers the unexpected behavior. Will revert back when I find out. |
I thought removing annotations from test files fixed it, but I can still see instances where the context buttons are in the wrong line of the tests. Still trying to understand what triggers the bug. |
Maybe you are using a plugin that produces incorrect source maps. Do you see the error column and line correctly when the test fails in the terminal? |
Hello @rafagsiqueira. Please provide a minimal reproduction using a GitHub repository or StackBlitz (you can also use examples). Issues marked with |
@sheremet-va It's an angular application, and it uses @analogjs/vitest-angular:test as the builder.
Do you think that might be the culprit?
Adding comments to the test seems to do the trick. |
@sheremet-va found an open issue in their project: analogjs/analog#1211 |
Describe the bug
As shown on the screenshot, the context button (for running the test from the test file) and error messages (from failed expects) is shown at the wrong line, whenever a test returns a Promise.
Reproduction
Test case with the following syntax:
Output
Version
v1.2.1
Validations
The text was updated successfully, but these errors were encountered: