|
2 | 2 | import '../../tests/setup'; |
3 | 3 |
|
4 | 4 | import { afterEach, beforeEach, describe, expect, it, mock } from 'bun:test'; |
5 | | -<<<<<<< HEAD |
6 | 5 | import { SyncService, syncService } from '../services/sync.service'; |
7 | 6 | import { supabase } from '../config/supabase'; |
8 | | -======= |
9 | | -import { supabase } from '../config/supabase'; |
10 | | -import { SyncService, syncService } from '../services/sync.service'; |
11 | | ->>>>>>> 4846267 (fix: remove hardcoded supabase mock, modularize supabase mock, call mock on setup) |
12 | 7 |
|
13 | 8 | describe('SyncService', () => { |
14 | 9 | beforeEach(() => { |
@@ -147,7 +142,6 @@ describe('SyncService', () => { |
147 | 142 |
|
148 | 143 | describe('Event Processing', () => { |
149 | 144 | it('should process booking created event', async () => { |
150 | | -<<<<<<< HEAD |
151 | 145 | const supabaseFromMock = supabase.from as unknown as { |
152 | 146 | mock?: { calls: Array<[string]> }; |
153 | 147 | mockClear?: () => void; |
@@ -184,11 +178,6 @@ describe('SyncService', () => { |
184 | 178 | expect(tables).toContain('sync_events'); |
185 | 179 | expect(tables).toContain('bookings'); |
186 | 180 | expect(syncService.getStatus().isRunning).toBe(true); |
187 | | -======= |
188 | | - // Global mock is already set up - this test verifies basic functionality |
189 | | - await syncService.start(); |
190 | | - expect(syncService.getStatus().isRunning).toBe(true); |
191 | | ->>>>>>> 5d91a40 (fix: booking tests (change to bun and add supabase mocks) and fix sync service (mocks)) |
192 | 181 | await syncService.stop(); |
193 | 182 | }); |
194 | 183 |
|
|
0 commit comments