We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 44b3a36 commit e3cc1d2Copy full SHA for e3cc1d2
src/user-event/press/press.ts
@@ -20,7 +20,6 @@ export interface PressOptions {
20
export async function press(this: UserEventInstance, element: ReactTestInstance): Promise<void> {
21
await basePress(this.config, element, {
22
type: 'press',
23
- duration: undefined,
24
});
25
}
26
@@ -37,7 +36,7 @@ export async function longPress(
37
36
38
interface BasePressOptions {
39
type: 'press' | 'longPress';
40
- duration: number | undefined;
+ duration?: number;
41
42
43
const basePress = async (
0 commit comments