mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-01 00:43:15 +00:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user