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

Method createTester

packages/@react-aria/test-utils/src/user.ts:145–152  ·  view source on GitHub ↗

* Creates an aria pattern tester, inheriting the options provided to the original user.

(patternName: T, opts: TesterOpts<T>)

Source from the content-addressed store, hash-verified

143 * Creates an aria pattern tester, inheriting the options provided to the original user.
144 */
145 createTester<T extends PatternNames>(patternName: T, opts: TesterOpts<T>): Tester<T> {
146 return new keyToUtil[patternName]({
147 interactionType: this.interactionType,
148 advanceTimer: this.advanceTimer,
149 ...opts,
150 user: this.user
151 }) as Tester<T>;
152 }
153}

Callers 15

AriaMenuTestsFunction · 0.95
AriaTreeTestsFunction · 0.95
TagGroup.test.jsFile · 0.80
Tree.test.tsxFile · 0.80
ListBox.test.jsFile · 0.80
Select.test.jsFile · 0.80
ComboBox.test.jsFile · 0.80
RadioGroup.test.jsFile · 0.80

Calls

no outgoing calls

Tested by 2

verifyMenuToggleFunction · 0.64
openAndTriggerMenuItemFunction · 0.64