core icon indicating copy to clipboard operation
core copied to clipboard

With the latest vitest, there is no way to ignore templates from .vue files

Open roshnimridha04 opened this issue 1 month ago • 2 comments

Vue version

3.5.24

Link to minimal reproduction

https://github.com/vitest-dev/vitest/discussions/3183

Steps to reproduce

use vitest and @vitest/coverage-v8 version 4.0.8 and try to ignore the templates.

What is expected?

There should a way to ignote template from coverage when using vitest

What is actually happening?

There is no way to ignore.

System Info


Any additional comments?

No response

roshnimridha04 avatar Nov 13 '25 10:11 roshnimridha04

Vue source maps should work with coverage tooling which currently do not happen

roshnimridha04 avatar Nov 13 '25 10:11 roshnimridha04

Is this trick not working?

Could you please provide a minimal runnable reproduction?

edison1105 avatar Nov 14 '25 06:11 edison1105