Skip to content

Commit

Permalink
feat: add message sutesPassed on running tests
Browse files Browse the repository at this point in the history
  • Loading branch information
WillianAgostini committed Jan 12, 2024
1 parent 7cf5d10 commit 00ac719
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion packages/jest-reporters/src/Status.ts
Original file line number Diff line number Diff line change
Expand Up @@ -171,11 +171,18 @@ export default class Status {
: '';
const prefix = RUNNING + projectDisplayName;

const suitesPassed = this._currentTestCases.filter(
c => c.testCaseResult.status == 'passed' && c.test.path === testPath,
).length;

const currentTestPassed = `${chalk.bold.green(
`${suitesPassed} passed`,
)}`;
content += `${wrapAnsiString(
prefix +
trimAndFormatPath(stringLength(prefix), config, testPath, width),
width,
)}\n`;
)} ${currentTestPassed}\n`;
}
}

Expand Down

0 comments on commit 00ac719

Please sign in to comment.