forked from boos/BoosAPI
fix: resolve remaining review follow-ups
This commit is contained in:
@@ -2,9 +2,13 @@ import { describe, expect, it, vi, beforeEach } from 'vitest';
|
||||
|
||||
const getProxyFileByPublicIdForOwnerMock = vi.fn();
|
||||
|
||||
vi.mock('../../services/proxyFileStore.js', () => ({
|
||||
getProxyFileByPublicIdForOwner: (...args: unknown[]) => getProxyFileByPublicIdForOwnerMock(...args),
|
||||
}));
|
||||
vi.mock('../../services/proxyFileStore.js', async (importOriginal) => {
|
||||
const actual = await importOriginal<typeof import('../../services/proxyFileStore.js')>();
|
||||
return {
|
||||
...actual,
|
||||
getProxyFileByPublicIdForOwner: (...args: unknown[]) => getProxyFileByPublicIdForOwnerMock(...args),
|
||||
};
|
||||
});
|
||||
|
||||
describe('inlineLocalInputFileReferences', () => {
|
||||
beforeEach(() => {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { parseProxyLogMetadata } from '../../../shared/proxyLogMeta.js';
|
||||
import { parseProxyLogMetadata, type ParsedProxyLogMetadata } from '../../../shared/proxyLogMeta.js';
|
||||
|
||||
type ComposeProxyLogMessageArgs = {
|
||||
clientKind?: string | null;
|
||||
@@ -9,13 +9,7 @@ type ComposeProxyLogMessageArgs = {
|
||||
errorMessage?: string | null;
|
||||
};
|
||||
|
||||
export type ParsedProxyLogMessageMeta = {
|
||||
clientKind: string | null;
|
||||
sessionId: string | null;
|
||||
downstreamPath: string | null;
|
||||
upstreamPath: string | null;
|
||||
messageText: string;
|
||||
};
|
||||
export type ParsedProxyLogMessageMeta = ParsedProxyLogMetadata;
|
||||
|
||||
export function parseProxyLogMessageMeta(rawMessage: string): ParsedProxyLogMessageMeta {
|
||||
return parseProxyLogMetadata(rawMessage);
|
||||
|
||||
Reference in New Issue
Block a user