Skip to content

Coverage html report with karma throws "no such a file or directory" #1495

Closed
@lsycxyj

Description

@lsycxyj

Version

15.6.2

Reproduction link

https://github.com/lsycxyj/vue-l-lazyload/tree/temp/coverage-vue-loader-bug

Steps to reproduce

  1. Clone this branch: https://github.com/lsycxyj/vue-l-lazyload/tree/temp/coverage-vue-loader-bug
  2. yarn install
  3. yarn unitReport
    And It will throw the error.

What is expected?

Html report should be produced correctly.

What is actually happening?

It breaks with message like:
ERROR [karma-server]: { Error: ENOENT: no such file or directory, open 'path\to\InViewComp.vue?vue&type=script&lang=js&.html'


I suppose it's related to the weird query parameters after the vue file path. And the html report will be produced correctly if I don't import the single file component of ".vue" files.

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