We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c8fee3a commit 6e02920Copy full SHA for 6e02920
1 file changed
tests/chaos.test.ts
@@ -1,4 +1,9 @@
1
-import { describe, it, expect } from 'vitest'
+import { describe, it, expect, vi } from 'vitest'
2
+
3
+// chaos.ts importa ../src/db (crea el cliente Turso al cargar). Estos tests
4
+// solo ejercen funciones puras, así que sustituimos db por un stub inerte.
5
+vi.mock('../src/db', () => ({ db: {} }))
6
7
import {
8
routeMatches,
9
pickChaos,
0 commit comments