diff --git a/packages/client/src/test-utils/TestUtils.tsx b/packages/client/src/test-utils/TestUtils.tsx index b370dca..8f18c8e 100644 --- a/packages/client/src/test-utils/TestUtils.tsx +++ b/packages/client/src/test-utils/TestUtils.tsx @@ -94,7 +94,9 @@ export class TestUtils { return self } - const self = { + const self: ISelf< + Props, typeof store, typeof Component, CreateJSX + > = { render, store, Component, @@ -107,3 +109,11 @@ export class TestUtils { return {withState, withComponent} } } + +interface ISelf { + render: (props: Props) => ReturnType + store: Store + Component: Component + withJSX: (localCreateJSX: CreateJSX) + => ISelf +}