Commit Graph

4 Commits

Author SHA1 Message Date
djalim 080f7606a7 refactor(api_mock.ts): remove async from mockFetch to match signature
Check Deno code / Check Deno code (pull_request) Successful in 7s
Build and push image / Build Docker image (push) Successful in 2m11s
2026-04-21 12:04:10 +02:00
djalim 4e220f72d7 style: format api mock return type and test imports/JSON body 2026-04-21 12:02:55 +02:00
djalim 204a590b37 refactor(test): improve fetch mock and update fixture types
Add support for HTTP methods, status codes, body and headers in the fetch
mock. Track calls and expose getFetchCalls for assertions. Update fixture
interfaces to use string IDs, add ImportResult and ApiError types, and
provide standard error constants. Adjust fixture data to match new types.
2026-04-21 11:31:45 +02:00
djalim 56430f9991 test: add API mock, fixtures, and DOM helpers for tests 2026-04-21 11:23:21 +02:00