Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
await waitFor(() => {
const element = select('SLIDER');
simulate.touchStart(element, {
currentTarget: element!,
touches: {
0: {
clientX: eventMock.clientX,
clientY: eventMock.clientY
}
} as any as TouchList
});
simulateTouchEvent(
environment,
'touchmove',
{
clientX: eventMock.clientX,
clientY: eventMock.clientY
}
);
public touchStart(event: SliderEventCoordinates) {
const element = this.slider;
simulate.touchStart(element, {
preventDefault: noop,
currentTarget: element,
touches: {
0: {
clientX: event.clientX,
clientY: event.clientY
}
} as any as TouchList
});
}