Commit c0c1570
committed
ci: run tests on Node 24 (node:sqlite) + drop mockist textDownloadProvider test
Two Linux-CI-only failures the case-insensitive macOS dev box never surfaced:
1. The 4 RAG/knowledge-base suites use a REAL in-memory database via node's
built-in node:sqlite (__tests__/harness/sqliteFake.ts) — the correct
'prefer real over a fake' doctrine. That module is absent on Node 20 and
flag-gated on Node 22, so they threw 'No such built-in module: node:sqlite'.
Pin the test job to Node 24 (node:sqlite is flag-free from 23.4+).
2. __tests__/unit/services/textDownloadProvider.test.ts jest.mock'd our own
huggingFace service at '.../huggingFace' (wrong case; the file is
huggingface.ts) — resolves on macOS, fails on Linux. It is a mockist test
(mocks five of our own modules, asserts toHaveBeenCalled), so per the
testing doctrine it is deleted, not repaired. textProvider stays covered by
modelDownloadService.test.ts + DownloadManagerScreen.test.tsx.1 parent a4c10e1 commit c0c1570
2 files changed
Lines changed: 5 additions & 177 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
136 | 136 | | |
137 | 137 | | |
138 | 138 | | |
139 | | - | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
140 | 144 | | |
141 | 145 | | |
142 | 146 | | |
| |||
This file was deleted.
0 commit comments