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

Function getContextLines

packages/utils/src/diff/normalizeDiffOptions.ts:50–56  ·  view source on GitHub ↗
(contextLines?: number)

Source from the content-addressed store, hash-verified

48}
49
50function getContextLines(contextLines?: number): number {
51 return typeof contextLines === 'number'
52 && Number.isSafeInteger(contextLines)
53 && contextLines >= 0
54 ? contextLines
55 : DIFF_CONTEXT_DEFAULT
56}
57
58// Pure function returns options with all properties.
59export function normalizeDiffOptions(

Callers 1

normalizeDiffOptionsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected