Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
5
import
{ expect, test } from
'vitest'
6
7
function
wrapDiff(diff?: string) {
8
return
diff && stripVTControlCharacters(`\n${diff}\n`)
9
}
10
11
test(
'displays string diff'
, () => {
12
const
stringA =
'Hello AWorld'
Callers
1
diff.test.ts
File · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected