Skip to content

Commit 2e4ba11

Browse files
committed
fix(tests): drop the repo's only bare vi.mock automock
A bare vi.mock('drizzle-orm') automock colliding with factory mocks of the same module in a shared worker corrupts vitest's mock registry (upstream vitest-dev/vitest#10290 / #10145, reproduced in isolation). The global factory mock already covers this suite.
1 parent c164afc commit 2e4ba11

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

apps/sim/app/api/knowledge/search/utils.test.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ import { afterAll, afterEach, beforeEach, describe, expect, it, vi } from 'vites
99
import { env } from '@/lib/core/config/env'
1010
import * as documentsUtilsModule from '@/lib/knowledge/documents/utils'
1111

12-
vi.mock('drizzle-orm')
13-
1412
/**
1513
* Spy on the real documents/utils namespace instead of vi.mock: the shared
1614
* `@/lib/knowledge/embeddings` module may be cached bound to the real module,

0 commit comments

Comments
 (0)