MCPcopy
hub / github.com/jestjs/jest / pluralize

Function pluralize

packages/jest-util/src/pluralize.ts:8–14  ·  view source on GitHub ↗
(
  word: string,
  count: number,
  ending = 's',
)

Source from the content-addressed store, hash-verified

6 */
7
8export default function pluralize(
9 word: string,
10 count: number,
11 ending = 's',
12): string {
13 return `${count} ${word}${count === 1 ? '' : ending}`;
14}

Callers 13

_drawUIProgressMethod · 0.90
getNoTestFoundVerboseFunction · 0.90
_drawUIProgressMethod · 0.90
_drawUIDoneMethod · 0.90
getNoTestFoundFunction · 0.90
runCLIFunction · 0.90
toAsymmetricMatcherMethod · 0.90
getSnapshotStatusFunction · 0.90
getSnapshotSummaryFunction · 0.90
getSummaryFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected