MCPcopy Create free account
hub / github.com/adobe/react-spectrum / constructor

Method constructor

packages/@react-aria/test-utils/src/user.ts:135–140  ·  view source on GitHub ↗
(opts: UserOpts = {})

Source from the content-addressed store, hash-verified

133 advanceTimer: UserOpts['advanceTimer'];
134
135 constructor(opts: UserOpts = {}) {
136 let {interactionType, advanceTimer} = opts;
137 this.user = userEvent.setup({delay: null, pointerMap});
138 this.interactionType = interactionType;
139 this.advanceTimer = advanceTimer || defaultAdvanceTimer;
140 }
141
142 /**
143 * Creates an aria pattern tester, inheriting the options provided to the original user.

Callers

nothing calls this directly

Calls 1

setupMethod · 0.45

Tested by

no test coverage detected