-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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(reporter): correct error source position in json report #1909
Conversation
Do you mind adding a snapshot test for the generated JSON? Thanks. |
@antfu |
test/reporters/tests/json.test.ts
Outdated
import { clearSourcePos, files } from '../src/data' | ||
|
||
const no_comment: TransformResult = { | ||
code: 'const __vite_ssr_import_0__ = await __vite_ssr_import__("vitest");\n' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is probably too verbose. I am thinking to spawn a Vitest runner and read it's JSON output to snap
Head branch was pushed to by a user without write access
@antfu |
fix for issue #1894