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

Function setup

packages/runtime-core/__tests__/components/KeepAlive.spec.ts:633–649  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

631
632 describe('cache invalidation', () => {
633 function setup() {
634 const viewRef = ref('one')
635 const includeRef = ref('one,two')
636 const App = {
637 render() {
638 return h(
639 KeepAlive,
640 {
641 include: includeRef.value,
642 },
643 () => h(views[viewRef.value]),
644 )
645 },
646 }
647 render(h(App), root)
648 return { viewRef, includeRef }
649 }
650
651 function setupExclude() {
652 const viewRef = ref('one')

Callers 1

KeepAlive.spec.tsFile · 0.70

Calls 8

renderFunction · 0.90
hFunction · 0.85
injectFunction · 0.85
cloneVNodeFunction · 0.85
onActivatedFunction · 0.85
onDeactivatedFunction · 0.85
refFunction · 0.50
provideFunction · 0.50

Tested by

no test coverage detected