Skip to content

Commit 02e0ecd

Browse files
committed
test(mothership): drive the run replay liveness tests through the central agent-url mock
1 parent 11e9bbd commit 02e0ecd

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

‎apps/sim/lib/mothership/request/session/run-replay.test.ts‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1+
import { mothershipAgentUrlMock } from '@sim/testing/mocks/mothership-agent-url.mock'
12
import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'
23

3-
vi.mock('@/lib/mothership/server/agent-url', async (importOriginal) => ({
4-
...(await importOriginal<typeof import('@/lib/mothership/server/agent-url')>()),
5-
getMothershipBaseURL: async () => 'https://worker.test',
6-
}))
4+
vi.mock('@/lib/mothership/server/agent-url', () => mothershipAgentUrlMock)
75

86
import {
97
forwardRunReplay,

0 commit comments

Comments
 (0)