Skip to content

Commit

Permalink
fix: type error
Browse files Browse the repository at this point in the history
  • Loading branch information
Dunqing committed Sep 23, 2023
1 parent 372c5e4 commit 219144c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/runner/src/fixture.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,9 @@ export function withFixtures(fn: Function, testContext?: TestContext) {
catch (err) {
reject(err)
}
return new Promise<void>(fixtureCleanupSet.add)
return new Promise<void>((resolve) => {
fixtureCleanupSet.add(resolve)
})
}
}

Expand Down

0 comments on commit 219144c

Please sign in to comment.