MCPcopy
hub / github.com/vuejs/core / serializeInner

Function serializeInner

packages/runtime-test/src/serialize.ts:22–33  ·  packages/runtime-test/src/serialize.ts::serializeInner
(
  node: TestElement,
  indent: number = 0,
  depth: number = 0,
)

Source from the content-addressed store, hash-verified

20}
21
22export function serializeInner(
23 node: TestElement,
24 indent: number = 0,
25 depth: number = 0,
26): string {
27 const newLine = indent ? `\n` : ``
28 return node.children.length
29 ? newLine +
30 node.children.map(c => serialize(c, indent, depth + 1)).join(newLine) +
31 newLine
32 : ``
33}
34
35function serializeElement(
36 node: TestElement,

Callers 15

computed.spec.tsFile · 0.90
effect.spec.tsFile · 0.90
scopeId.spec.tsFile · 0.90
innerFunction · 0.90
hmr.spec.tsFile · 0.90

Calls 2

serializeFunction · 0.85
mapMethod · 0.80

Tested by 15

innerFunction · 0.72
mapRefsFunction · 0.72
runSharedTestsFunction · 0.72
testUnmountFunction · 0.72
testToggleOnOffFunction · 0.72
testToggleBranchesFunction · 0.72
testOutInFunction · 0.72
testOutInBeforeFinishFunction · 0.72
testOutInDoubleToggleFunction · 0.72
testInOutFunction · 0.72