Skip to content

Commit 22d9269

Browse files
fix(web): update mock paths in listCommitsApi.test.ts
Update vi.mock paths from @/withAuthV2 to @/middleware/withAuth and from @/actions to @/middleware/sew to match the renamed modules. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 285c7ed commit 22d9269

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

packages/web/src/features/git/listCommitsApi.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ vi.mock('@/lib/serviceError', () => ({
3131
message: `Invalid git reference: "${ref}". Git refs cannot start with '-'.`,
3232
}),
3333
}));
34-
vi.mock('@/actions', () => ({
34+
vi.mock('@/middleware/sew', () => ({
3535
sew: async <T>(fn: () => Promise<T> | T): Promise<T> => {
3636
try {
3737
return await fn();
@@ -47,8 +47,8 @@ vi.mock('@/actions', () => ({
4747
// Create a mock findFirst function that we can configure per-test
4848
const mockFindFirst = vi.fn();
4949

50-
vi.mock('@/withAuthV2', () => ({
51-
withOptionalAuthV2: async <T>(fn: (args: { org: { id: number; name: string }; prisma: unknown }) => Promise<T>): Promise<T> => {
50+
vi.mock('@/middleware/withAuth', () => ({
51+
withOptionalAuth: async <T>(fn: (args: { org: { id: number; name: string }; prisma: unknown }) => Promise<T>): Promise<T> => {
5252
// Mock withOptionalAuthV2 to provide org and prisma context
5353
const mockOrg = { id: 1, name: 'test-org' };
5454
const mockPrisma = {

0 commit comments

Comments
 (0)