Skip to content

Commit d9fda2a

Browse files
authoredApr 21, 2023
fix(coverage): stackblitz hangs with c8 (#3225)
1 parent 0a2875e commit d9fda2a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
 

‎packages/coverage-c8/src/takeCoverage.ts

+4
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
import inspector from 'node:inspector'
66
import type { Profiler } from 'node:inspector'
7+
import { provider } from 'std-env'
78

89
const session = new inspector.Session()
910

@@ -27,6 +28,9 @@ export async function takeCoverage() {
2728

2829
resolve({ result })
2930
})
31+
32+
if (provider === 'stackblitz')
33+
resolve({ result: [] })
3034
})
3135
}
3236

0 commit comments

Comments
 (0)
Please sign in to comment.