-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
p2-edge-caseBug, but has workaround or limited in scope (priority)Bug, but has workaround or limited in scope (priority)
Description
Clear and concise description of the problem
As a developer using Vitest, I would like any Rollup plugins using the this.warn API to automatically show the warnings in the console while I am running tests, so that I know there might be issues in the plugin that I should fix.
This actually seems to work out-of-the-box today with Vite (minimal repro):
[plugin:custom-rollup-plugin] [plugin custom-rollup-plugin] I am warning you!! (x4)
However, a similar repro with Vitest does not show any warnings when running vitest.
Suggested solution
By default, I think Rollup warnings should be shown in the console. Perhaps there could also be a way to disable this default behavior, or to handle the warnings in vitest.config.js.
Alternative
I'm not aware of any way to surface Rollup plugin warnings using current Vitest. I apologize if I missed something in the docs!
Additional context
$ node --version
v20.11.0
$ npm --version
10.4.0
Validations
- Follow our Code of Conduct
- Read the Contributing Guidelines.
- Read the docs.
- Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
p2-edge-caseBug, but has workaround or limited in scope (priority)Bug, but has workaround or limited in scope (priority)
Type
Projects
Status
Approved