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

Function wrapDiff

test/core/test/diff.test.ts:7–9  ·  view source on GitHub ↗
(diff?: string)

Source from the content-addressed store, hash-verified

5import { expect, test } from 'vitest'
6
7function wrapDiff(diff?: string) {
8 return diff && stripVTControlCharacters(`\n${diff}\n`)
9}
10
11test('displays string diff', () => {
12 const stringA = 'Hello AWorld'

Callers 1

diff.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected