We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
cancelCurrentRun
runningPromise
1 parent 847d322 commit 1dbf514Copy full SHA for 1dbf514
packages/vitest/src/node/core.ts
@@ -800,6 +800,7 @@ export class Vitest {
800
async cancelCurrentRun(reason: CancelReason): Promise<void> {
801
this.isCancelling = true
802
await Promise.all(this._onCancelListeners.splice(0).map(listener => listener(reason)))
803
+ await this.runningPromise
804
}
805
806
/** @internal */
packages/vitest/src/node/stdin.ts
@@ -61,7 +61,6 @@ export function registerConsoleShortcuts(
61
process.exitCode = 130
62
63
await ctx.cancelCurrentRun('keyboard-input')
64
- await ctx.runningPromise
65
66
return ctx.exit(true)
67
0 commit comments