Commit 35d4500
test: mock KeyvSqlite and KeyvNedbStore to prevent SQLITE_CANTOPEN error
Added mocks for @keyv/sqlite and keyv-nedb-store to use in-memory Map
instead of file-based storage. This prevents SQLITE_CANTOPEN errors
during tests when the lib module tries to create SQLite cache files.
The gh-priority-sync task imports from @/lib which uses KeyvSqlite for
Notion caching and KeyvNedbStore for GitHub caching. These need to be
mocked to avoid file system access during tests.
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>1 parent b8743d0 commit 35d4500
1 file changed
+10
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
123 | 133 | | |
124 | 134 | | |
125 | 135 | | |
| |||
0 commit comments