Skip to content

Commit

Permalink
fix(coverage): stackblitz hangs with c8 (#3225)
Browse files Browse the repository at this point in the history
  • Loading branch information
AriPerkkio committed Apr 21, 2023
1 parent 0a2875e commit d9fda2a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/coverage-c8/src/takeCoverage.ts
Expand Up @@ -4,6 +4,7 @@

import inspector from 'node:inspector'
import type { Profiler } from 'node:inspector'
import { provider } from 'std-env'

const session = new inspector.Session()

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

resolve({ result })
})

if (provider === 'stackblitz')
resolve({ result: [] })
})
}

Expand Down

0 comments on commit d9fda2a

Please sign in to comment.