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

Function setupExclude

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

Source from the content-addressed store, hash-verified

649 }
650
651 function setupExclude() {
652 const viewRef = ref('one')
653 const excludeRef = ref('')
654 const App = {
655 render() {
656 return h(
657 KeepAlive,
658 {
659 exclude: excludeRef.value,
660 },
661 () => h(views[viewRef.value]),
662 )
663 },
664 }
665 render(h(App), root)
666 return { viewRef, excludeRef }
667 }
668
669 test('on include change', async () => {
670 const { viewRef, includeRef } = setup()

Callers 1

KeepAlive.spec.tsFile · 0.85

Calls 3

renderFunction · 0.90
hFunction · 0.85
refFunction · 0.50

Tested by

no test coverage detected