Skip to content

Commit 5dc6f90

Browse files
committed
test(projects): model expansion authority in workspace move fixtures
1 parent 467d269 commit 5dc6f90

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎apps/sim/lib/workspaces/admin-move.test.ts‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,9 @@ afterAll(resetDbChainMock)
230230

231231
beforeEach(() => {
232232
resetDbChainMock()
233+
/** Real Drizzle SQL bypasses the shared fragment mock; model the expansion schema explicitly. */
234+
dbChainMockFns.execute.mockResolvedValue([{ marker: true, complete: false }])
235+
dbChainMockFns.as.mockReturnValue(workspace)
233236
isInvitationExpired.mockReturnValue(false)
234237
/**
235238
* `vi.clearAllMocks` clears call records but keeps implementations, so a

0 commit comments

Comments
 (0)