MCPcopy Create free account
hub / github.com/vitest-dev/vitest / getCommonMessage

Function getCommonMessage

packages/utils/src/diff/index.ts:32–35  ·  view source on GitHub ↗
(message: string, options?: DiffOptions)

Source from the content-addressed store, hash-verified

30export { Diff, DIFF_DELETE, DIFF_EQUAL, DIFF_INSERT }
31
32function getCommonMessage(message: string, options?: DiffOptions) {
33 const { commonColor } = normalizeDiffOptions(options)
34 return commonColor(message)
35}
36
37const {
38 AsymmetricMatcher,

Callers 2

compareObjectsFunction · 0.85
getObjectsDifferenceFunction · 0.85

Calls 1

normalizeDiffOptionsFunction · 0.90

Tested by

no test coverage detected