fix(coverage): ignore files from npm registry (#18457)

Fixes https://github.com/denoland/deno/issues/17664 and part of
https://github.com/denoland/deno/issues/18454 by excluding files
belonging to npm modules by default in the coverage output.
This commit is contained in:
Geert-Jan Zwiers 2023-03-30 19:40:22 +02:00 committed by GitHub
parent 30ee846588
commit 206c593519
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 65 additions and 0 deletions

View file

@ -0,0 +1 @@
cover [WILDCARD]/no_npm_coverage/no_npm_coverage.ts ... 100.000% (4/4)

View file

@ -0,0 +1,4 @@
import chalk from "npm:chalk";
export function main() {
console.log(chalk.red("RED"));
}

View file

@ -0,0 +1,4 @@
import { main } from "./no_npm_coverage.ts";
Deno.test("main", () => {
main();
});