Skip to content

Commit 4a5d932

Browse files
fix tests
1 parent 89385b8 commit 4a5d932

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

cli/test/setup.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,14 @@ export function resetManagementClientMocks(): void {
3232

3333
resetManagementClientMocks();
3434

35+
class MockPowerSyncManagementClient {
36+
constructor() {
37+
return managementClientMock;
38+
}
39+
}
40+
3541
vi.mock('@powersync/management-client', () => ({
36-
PowerSyncManagementClient: vi.fn().mockImplementation(() => managementClientMock)
42+
PowerSyncManagementClient: MockPowerSyncManagementClient
3743
}));
3844

3945
import { root } from './helpers/root.js';

0 commit comments

Comments
 (0)