w7a9q
w7a9q2w ago

Exclude packages from test coverage

Hi, I would like to exclude the packages from the coverage when I run deno test --coverage. Currently I also get generated jsons inside coverage directory with url like this: "url": "file:///Users/johndoe/Workspace/Dev/lld-test/node_modules/.deno/wawoff2@2.0.1/node_modules/wawoff2/decompress.js"", How do I avoid it? Note that I have it excluded in my deno.json as:
"test": {
"exclude": ["node_modules"]
},
"test": {
"exclude": ["node_modules"]
},
2 Replies
marvinh.
marvinh.2w ago
That sounds like a bug. Anything inside dependencies should be excluded by default. If you open a bug report with a code snippet that reproduces the issue, the team can fix it. To open an issue follow this link: https://github.com/denoland/deno/issues/new/choose
w7a9q
w7a9qOP2w ago
I cannot reproduce this issue on a clean project. Any ideas what could be the cause? I have tried to delete node_module directory and deno.lock file with deno install --allow-scripts after. However, I still get the same issue.