Skip to content

[Vitest]: Incorrect filepaths for test files in reporters #30822

@DmitryMakhnev

Description

@DmitryMakhnev

Command

test

Is this a regression?

  • Yes, this behavior used to work in the previous version

The previous version in which this bug was not present was

No response

Description

Incorrect filepaths for test files in reporters.

I run tests for .ts file but in in console and reporter filepath see .js file.

Default reporter:
Image

Custom reporter:
Image

Minimal Reproduction

https://github.com/DmitryMakhnev/ng20-vitest-not-mapped-filepath-in-reporter

Exception or Error


Your Environment

Angular CLI: 20.0.1
Node: 22.15.0
Package Manager: npm 10.9.2
OS: darwin arm64

Angular: 20.0.2
... common, compiler, compiler-cli, core, forms
... platform-browser, router

Package                      Version
------------------------------------------------------
@angular-devkit/architect    0.2000.1
@angular-devkit/core         20.0.1
@angular-devkit/schematics   20.0.1
@angular/build               20.0.1
@angular/cli                 20.0.1
@schematics/angular          20.0.1
rxjs                         7.8.2
typescript                   5.8.3

Anything else relevant?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions