Skip to content

Commit 6f9c324

Browse files
committed
Update service.test.ts
1 parent 5f34415 commit 6f9c324

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

apps/twig/src/renderer/features/sessions/service/service.test.ts

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ vi.mock("@features/sessions/stores/modelsStore", () => ({
8181
const mockSessionConfigStore = vi.hoisted(() => ({
8282
getPersistedConfigOptions: vi.fn(() => undefined),
8383
setPersistedConfigOptions: vi.fn(),
84+
removePersistedConfigOptions: vi.fn(),
8485
updatePersistedConfigOptionValue: vi.fn(),
8586
}));
8687

@@ -89,6 +90,22 @@ vi.mock(
8990
() => mockSessionConfigStore,
9091
);
9192

93+
const mockSessionAdapterStore = vi.hoisted(() => ({
94+
useSessionAdapterStore: {
95+
getState: vi.fn(() => ({
96+
adaptersByRunId: {},
97+
setAdapter: vi.fn(),
98+
getAdapter: vi.fn(),
99+
removeAdapter: vi.fn(),
100+
})),
101+
},
102+
}));
103+
104+
vi.mock(
105+
"@features/sessions/stores/sessionAdapterStore",
106+
() => mockSessionAdapterStore,
107+
);
108+
92109
const mockGetIsOnline = vi.hoisted(() => vi.fn(() => true));
93110

94111
vi.mock("@/renderer/stores/connectivityStore", () => ({

0 commit comments

Comments
 (0)