Use a custom test reporter instead of JSON reporter #25
AlmarAubel
started this conversation in
Ideas
Replies: 1 comment 1 reply
-
I think the best way to do this is to use the same interface as |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
With the new feature of Vitest you could pass a custom reporter to Vitest. What do you think, if we would implement a custom reporter which could directly interact with the vscode api. Instead of using the json reporter. I think this will also make it easier to implement the watch function.
Otherwise we could directly interact with Vitest api (instead of using the CLI) and inject a reporter instance.
For example
`
const vitestPath = getVitestPath(); // could return something like "/Users/xxx/source/vitest-explorer/samples/basic/node_modules/vitest/dist/node.js"
const { startVitest } = await import(vitestPath); // Dynamic import during runtime using the Vitest instance of the user
@zxch3n what do you think?
Beta Was this translation helpful? Give feedback.
All reactions