We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9429153 commit 2b6854cCopy full SHA for 2b6854c
.changeset/cold-avocados-greet.md
@@ -0,0 +1,6 @@
1
+---
2
+"@web/test-runner-coverage-v8": patch
3
+"@web/test-runner": patch
4
5
+
6
+Ignore external urls from coverage
packages/test-runner-coverage-v8/src/index.ts
@@ -50,6 +50,9 @@ export async function v8ToIstanbul(
50
if (
51
// ignore non-http protocols (for exmaple webpack://)
52
url.protocol.startsWith('http') &&
53
+ // ignore external urls
54
+ url.hostname === config.hostname &&
55
+ url.port === `${config.port}` &&
56
// ignore non-files
57
!!extname(path) &&
58
// ignore virtual files
0 commit comments