MCPcopy
hub / github.com/vitest-dev/vitest / memoProps

Function memoProps

packages/runner/src/fixture.ts:627–630  ·  view source on GitHub ↗
(fn: Function, props: Set<string>)

Source from the content-addressed store, hash-verified

625}
626
627function memoProps(fn: Function, props: Set<string>): Set<string> {
628 (fn as any)[kPropNamesSymbol] = props
629 return props
630}
631
632interface PropsParserOptions {
633 sourceError?: Error | undefined

Callers 1

getUsedPropsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected