(
options: UserEventSetupOptions = {},
// eslint-disable-next-line @typescript-eslint/no-unsafe-function-type
callsite: Function,
)
| 75 | } |
| 76 | |
| 77 | function createConfig( |
| 78 | options: UserEventSetupOptions = {}, |
| 79 | // eslint-disable-next-line @typescript-eslint/no-unsafe-function-type |
| 80 | callsite: Function, |
| 81 | ): UserEventConfig { |
| 82 | const { delay, advanceTimers, ...rest } = options; |
| 83 | validateOptions('userEvent.setup', rest, callsite); |
| 84 | |
| 85 | return { |
| 86 | ...defaultOptions, |
| 87 | ...(delay !== undefined && { delay }), |
| 88 | ...(advanceTimers !== undefined && { advanceTimers }), |
| 89 | }; |
| 90 | } |
| 91 | |
| 92 | /** |
| 93 | * UserEvent instance used to invoke user interaction functions. |
no test coverage detected
searching dependent graphs…