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

Function coverCollectionFn

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

Source from the content-addressed store, hash-verified

2
3describe('reactivity/collections', () => {
4 function coverCollectionFn(collection: Map<any, any>, fnName: string) {
5 const spy = vi.fn()
6 let proxy = reactive(collection)
7 ;(collection as any)[fnName] = spy
8 return [proxy as any, spy]
9 }
10
11 describe('Map', () => {
12 test('instanceof', () => {

Callers 1

Map.spec.tsFile · 0.70

Calls 1

reactiveFunction · 0.90

Tested by

no test coverage detected