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

Function configureProps

packages/runner/src/fixture.ts:620–625  ·  view source on GitHub ↗
(fn: Function, options: FixturePropsOptions)

Source from the content-addressed store, hash-verified

618}
619
620export function configureProps(fn: Function, options: FixturePropsOptions): void {
621 Object.defineProperty(fn, kPropsSymbol, {
622 value: options,
623 enumerable: false,
624 })
625}
626
627function memoProps(fn: Function, props: Set<string>): Set<string> {
628 (fn as any)[kPropNamesSymbol] = props

Callers 4

createTaskCollectorFunction · 0.90
parseBuilderFixturesFunction · 0.90
wrapperFunction · 0.90
withSuiteFixturesFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected