Commit ce2dd46
committed
fix: add db context to test generator for working tests
- Tests were failing because mock context was missing the db instance
- Now passes db from @/server/db to test context
- Fixes test pass rate from 21% (3/14) to 79% (11/14) on fresh init
- Remaining 3 failures are test assertion bugs, not infrastructure issues1 parent a25f7d4 commit ce2dd46
1 file changed
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
197 | 197 | | |
198 | 198 | | |
199 | 199 | | |
| 200 | + | |
200 | 201 | | |
201 | 202 | | |
202 | 203 | | |
203 | 204 | | |
204 | 205 | | |
205 | 206 | | |
| 207 | + | |
206 | 208 | | |
207 | 209 | | |
208 | 210 | | |
| |||
212 | 214 | | |
213 | 215 | | |
214 | 216 | | |
| 217 | + | |
215 | 218 | | |
216 | 219 | | |
217 | 220 | | |
| |||
0 commit comments