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

Function unInstrumentArr

packages/reactivity/__tests__/reactiveArray.spec.ts:112–118  ·  view source on GitHub ↗
(rawTarget: any[])

Source from the content-addressed store, hash-verified

110 }
111
112 function unInstrumentArr(rawTarget: any[]) {
113 identityMethods.forEach(key => {
114 ;(rawTarget[key] as any).mockClear()
115 // relink to prototype method
116 rawTarget[key] = Array.prototype[key] as any
117 })
118 }
119
120 function expectHaveBeenCalledTimes(rawTarget: any[], times: number) {
121 identityMethods.forEach(key => {

Callers 1

Calls 1

forEachMethod · 0.80

Tested by

no test coverage detected