You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a node typescript module project and source files have extension .mts
Test coverage report doesn't include any source file, I verified this with both C8 and istanbul.
Tests run correctly regardless they have extension .mts or .ts.
Describe the bug
I have a node typescript module project and source files have extension .mts
Test coverage report doesn't include any source file, I verified this with both C8 and istanbul.
Tests run correctly regardless they have extension .mts or .ts.
Reproduction
Minimal example in https://github.com/pmosconi/vitest-issue
✓ tests/sample.test.mts (1)
Actual:
Test Files 1 passed (1)
Tests 1 passed (1)
Start at 12:51:48
Duration 1.17s (transform 455ms, setup 0ms, collect 64ms, tests 3ms)
% Coverage report from c8
----------|---------|----------|---------|---------|-------------------
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
----------|---------|----------|---------|---------|-------------------
All files | 0 | 0 | 0 | 0 |
----------|---------|----------|---------|---------|-------------------
Expected: src/index.mts to be in coverage report with coverage 100%
System Info
Used Package Manager
npm
Validations
The text was updated successfully, but these errors were encountered: