From 59f0d201353d8c2d575c7164a259a8c2e246355a Mon Sep 17 00:00:00 2001 From: Max Patiiuk Date: Sat, 1 Jun 2024 19:57:45 -0700 Subject: [PATCH] fix(tests): fix typescript error --- src/src/tests/reactUtils.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/src/tests/reactUtils.tsx b/src/src/tests/reactUtils.tsx index 4689b89..9e87edf 100644 --- a/src/src/tests/reactUtils.tsx +++ b/src/src/tests/reactUtils.tsx @@ -2,11 +2,12 @@ import type { Queries, queries } from '@testing-library/dom'; import type { RenderOptions, RenderResult } from '@testing-library/react'; import { render } from '@testing-library/react'; import userEvent from '@testing-library/user-event'; -import type { UserEvent } from '@testing-library/user-event/dist/types/setup/setup'; import React from 'react'; import type { IR } from '../utils/types'; +type UserEvent = ReturnType<(typeof userEvent)['setup']>; + /** * A wrapper for render() with userEvents setup function */