From 1ee962fbd8a250a185b56ea72b13da7830dc16e9 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Fri, 21 Apr 2023 11:05:26 -0300 Subject: tsc ask to export type from web-util --- packages/web-util/src/tests/hook.ts | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'packages/web-util/src/tests/hook.ts') diff --git a/packages/web-util/src/tests/hook.ts b/packages/web-util/src/tests/hook.ts index 58ac7d8c0..59f17ba8d 100644 --- a/packages/web-util/src/tests/hook.ts +++ b/packages/web-util/src/tests/hook.ts @@ -24,7 +24,6 @@ import { render as renderIntoDom, } from "preact"; import { render as renderToString } from "preact-render-to-string"; -import { ExampleItem, ExampleItemSetup } from "../stories.js"; // This library is expected to be included in testing environment only // When doing tests we want the requestAnimationFrame to be as fast as possible. @@ -33,6 +32,12 @@ options.requestAnimationFrame = (fn: () => void) => { return fn(); }; +export type ExampleItemSetup = { + component: FunctionalComponent; + props: Props; + contextProps: object; +}; + /** * * @param Component component to be tested @@ -113,10 +118,8 @@ function renderHook( type RecursiveState = S | (() => RecursiveState); interface Mounted { - // unmount: () => void; pullLastResultOrThrow: () => Exclude; assertNoPendingUpdate: () => Promise; - // waitNextUpdate: (s?: string) => Promise; waitForStateUpdate: () => Promise; } -- cgit v1.2.3