'How do I instrument `.vue` files using the istanbul/nyc command line

Ultimately, I am trying to instrument my Vue 3 app so that I can get code coverage that includes my .js and .vue files using the below command:

nyc instrument --compact=false src instrumented

I see that my .vue files are getting duplicated and included in my instrumented folder thanks to my .nycrc configuration.

{
  "extension": [".js", ".vue"]
}

But they are not getting instrumented.

They are simply copies.

What else do I need to do to get these files properly instrumented so that they can be included in my coverage report?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source