earlyai / earlyai-vscode-release

https://startearly.ai
1 stars 0 forks source link

Q&A: Coverage report directory #9

Open quriosapien opened 5 days ago

quriosapien commented 5 days ago

Question

How can I change the coverage-report directory ?? Presently, it produces the report (including lcov) in .early.coverage directory.

I am using Jest in Reactjs app with Vite.

Answer

Waiting for one...

sharonyb commented 13 hours ago

Hi, Currently the .early.coverage location is not configurable and is needed for the extension to work properly. We do add it to the .gitignore file, but if that not enough you can configure VSCode to ignore it.

Open settings.json:

  1. Press Ctrl + Shift + P (or Cmd + Shift + P on macOS) to open the Command Palette.
  2. Type "Preferences: Open Settings (JSON)" and select it.
  3. Add the "files.exclude" Setting: "files.exclude": { "**/.early.coverage": true }

Let us know if that solved your problem.