Skip to content

Commit

Permalink
fix(checks): wait for all promises to be settled (#452)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nelfimov authored Dec 12, 2024
1 parent 42772ba commit dc75987
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions yarn/plugin-checks/sources/checks-run.command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { Project } from '@yarnpkg/core'
import { execUtils } from '@yarnpkg/core'

class ChecksRunCommand extends BaseCommand {
static paths = [['checks', 'run']]
static override paths = [['checks', 'run']]

async execute(): Promise<number> {
const configuration = await Configuration.find(this.context.cwd, this.context.plugins)
Expand All @@ -20,7 +20,7 @@ class ChecksRunCommand extends BaseCommand {
configuration,
},
async (report) => {
await Promise.all([
await Promise.allSettled([
this.runCheck(project.cwd, ['lint'], report),
this.runCheck(project.cwd, ['typecheck'], report),
this.runCheck(project.cwd, ['test', 'unit'], report),
Expand Down

0 comments on commit dc75987

Please sign in to comment.