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

Function coverCollectionFn

packages/reactivity/__tests__/collections/Set.spec.ts:11–16  ·  view source on GitHub ↗
(collection: Set<any>, fnName: string)

Source from the content-addressed store, hash-verified

9
10describe('reactivity/collections', () => {
11 function coverCollectionFn(collection: Set<any>, fnName: string) {
12 const spy = vi.fn()
13 let proxy = reactive(collection)
14 ;(collection as any)[fnName] = spy
15 return [proxy as any, spy]
16 }
17
18 describe('Set', () => {
19 it('instanceof', () => {

Callers 1

Set.spec.tsFile · 0.70

Calls 1

reactiveFunction · 0.90

Tested by

no test coverage detected