From 2c060ab5400875c0ae07e074aeb7f581b72dc19b Mon Sep 17 00:00:00 2001 From: axel7083 <42176370+axel7083@users.noreply.github.com> Date: Tue, 30 Jan 2024 16:58:12 +0100 Subject: [PATCH] test: fix missing mockReturnValue Signed-off-by: axel7083 <42176370+axel7083@users.noreply.github.com> --- packages/frontend/src/pages/ModelPlayground.spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/frontend/src/pages/ModelPlayground.spec.ts b/packages/frontend/src/pages/ModelPlayground.spec.ts index 391ce6372..d795e7591 100644 --- a/packages/frontend/src/pages/ModelPlayground.spec.ts +++ b/packages/frontend/src/pages/ModelPlayground.spec.ts @@ -17,7 +17,7 @@ const mocks = vi.hoisted(() => { return () => {}; }, }, - playgroundStatesSubscribeMock: vi.fn(), + playgroundStatesSubscribeMock: vi.fn().mockReturnValue([]), playgroundStatesMock: { subscribe: (f: (msg: any) => void) => { f(mocks.playgroundStatesSubscribeMock());