fix(ci): resolve Journey strict checks and test contexts

Give the upload DTO an object for file-only requests, make UI error keys discoverable, and run the digest fixtures with the same ORM context as scheduled jobs.
This commit is contained in:
Maurice
2026-11-30 17:41:53 +01:00
parent 0c08a6dcb9
commit 21391e483d
40 changed files with 47 additions and 72 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
// FE-API-JOURNEY-SOCIAL-001
//
// #1702, #1669: every call pins its method and path and hands back what the server answered.
import { http, HttpResponse } from 'msw';
import { http, HttpResponse, type JsonBodyType } from 'msw';
import { describe, expect, it } from 'vitest';
import { server } from '../../tests/helpers/msw/server';
import { journeySocialApi } from './journeySocial';
@@ -10,7 +10,7 @@ describe('journeySocialApi', () => {
it('FE-API-JOURNEY-SOCIAL-001: calls the comment, follower and link routes', async () => {
const seen: string[] = [];
const record =
(body: unknown) =>
(body: JsonBodyType) =>
({ request }: { request: Request }) => {
seen.push(`${request.method} ${new URL(request.url).pathname}`);
return HttpResponse.json(body);