Commit Graph

3 Commits

Author SHA1 Message Date
Julien Calixte
292fe8f85a test(migrations): cover initial schema, idempotency, and legacy upgrade
Some checks failed
CI / check (push) Failing after 17s
2026-06-07 22:17:54 +02:00
Julien Calixte
2d7863d9cc test(db): cover note CRUD, pagination, and webhook helpers 2026-06-07 22:17:23 +02:00
Julien Calixte
c62936b819 test(helpers): add db, fetch, app, and auth test helpers
withTestDb sets up an in-memory SQLite handle with migrations
applied, swaps the production singleton via _setDbForTest, and
restores in a finally block. installFetchStub captures every
outbound request and throws if restored twice. requestApp wraps
Oak's app.handle so route tests can run without listen().
stubAuthenticate flips the server's authenticator indirection.
2026-06-07 22:16:47 +02:00