Commit Graph

4 Commits

Author SHA1 Message Date
Julien Calixte
34b8221376 fix(test): pass explicit did to seedWebhook in CRUD test
All checks were successful
CI / check (push) Successful in 15s
The webhook CRUD test combined an explicit did:plc:user webhook
with seedWebhook calls that defaulted to did:plc:test, so
listWebhooksByDid("did:plc:user") only returned the one
explicit row instead of three.
2026-06-07 22:20:52 +02:00
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