mirror of
https://github.com/johannesjo/super-productivity.git
synced 2026-07-21 10:28:33 +00:00
Adds tests/helpers/sync-logger.ts and tests/helpers/credential-store.ts to centralize the noopLogger and CredentialStore mocks that were copy- pasted across 8 spec files. createStatefulCredentialStore covers the "load/upsert/clear with state" cases; createMockCredentialStore covers bare vi.fn() ports. Spec sites that needed a unique mockResolvedValue chain it after the helper, preserving behavior 1:1. Also migrates 5 spec files from deep ../src/<file> paths to the matching sub-barrel (../src/webdav, /http, /super-sync, /platform) for symbols already exported there. No new barrel exports added — internal types (WebDavHttpAdapter, WebdavApi, DropboxApi, etc.) stay on deep paths because they are intentionally not part of the public surface. super-sync.spec.ts keeps its own credential/logger mocks (special __asPort wrapper and vi.spyOn against the live NOOP_SYNC_LOGGER) that the generic helpers cannot reproduce without bloat. |
||
|---|---|---|
| .. | ||
| super-sync.spec.ts | ||