Skip to content

Commit ce399b5

Browse files
committed
fix tests"
;
1 parent 2bd25e1 commit ce399b5

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

apps/sim/app/api/copilot/checkpoints/revert/route.test.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,13 @@ describe('Copilot Checkpoints Revert API Route', () => {
2323
setupCommonApiMocks()
2424
mockCryptoUuid()
2525

26+
// Mock getBaseUrl to return localhost for tests
27+
vi.doMock('@/lib/urls/utils', () => ({
28+
getBaseUrl: vi.fn(() => 'http://localhost:3000'),
29+
getBaseDomain: vi.fn(() => 'localhost:3000'),
30+
getEmailDomain: vi.fn(() => 'localhost:3000'),
31+
}))
32+
2633
mockSelect.mockReturnValue({ from: mockFrom })
2734
mockFrom.mockReturnValue({ where: mockWhere })
2835
mockWhere.mockReturnValue({ then: mockThen })

0 commit comments

Comments
 (0)