We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 89385b8 commit 4a5d932Copy full SHA for 4a5d932
cli/test/setup.ts
@@ -32,8 +32,14 @@ export function resetManagementClientMocks(): void {
32
33
resetManagementClientMocks();
34
35
+class MockPowerSyncManagementClient {
36
+ constructor() {
37
+ return managementClientMock;
38
+ }
39
+}
40
+
41
vi.mock('@powersync/management-client', () => ({
- PowerSyncManagementClient: vi.fn().mockImplementation(() => managementClientMock)
42
+ PowerSyncManagementClient: MockPowerSyncManagementClient
43
}));
44
45
import { root } from './helpers/root.js';
0 commit comments