kavod-io/vscode-jest-test-adapter

coverageReporters seems to be not supported

alexkev opened this issue · 1 comments

Things to consider before raising a bug
It seems coverageReporters is not supported, willing to make a PR to add it, but not sure where to start.

Describe the bug
I get the follow error

'● Validation Warning:\n' +
  '\n' +
  '  Unknown option "coverageReporters" with value ["html", "text", "text-summary", "cobertura"] was found.\n' +
  '  This is probably a typing mistake. Fixing it will remove this message.\n' +
  '\n' +
  '  Configuration Documentation:\n' +
  '  https://jestjs.io/docs/configuration\n' +
  '\n'

A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Create a project with jest config with coverageReporters https://jestjs.io/docs/configuration#coveragereporters-arraystring--string-options

Desktop (please complete the following information):

  • OSX

@alexkev great that you are considering fixing this 🙏 . I see it too. On thing missing from your issue is the impact.

For me the impact of this is that test explorer can't discover tests. I think at least the error message should be clearer that you'll need to remove the coverageReporters config line and restart VS Code to fix the problem. Perhaps it should be a fatal error rather than just a warning.