Skip to content

Commit

Permalink
fix: do not start node inspector (fix #620) (#622)
Browse files Browse the repository at this point in the history
  • Loading branch information
Demivan committed Jan 25, 2022
1 parent 5e6f694 commit 3b368dd
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions packages/vitest/src/runtime/run.ts
Expand Up @@ -191,7 +191,6 @@ export async function startTests(paths: string[], config: ResolvedConfig) {

let session!: inspector.Session
if (config.coverage.enabled) {
inspector.open(0)
session = new inspector.Session()
session.connect()

Expand All @@ -207,12 +206,6 @@ export async function startTests(paths: string[], config: ResolvedConfig) {
})

session.disconnect()
try {
inspector.close()
}
catch {
// Fails inside workers for some reason
}
}

await getSnapshotClient().saveSnap()
Expand Down

0 comments on commit 3b368dd

Please sign in to comment.