From 8f612644640f4c5032e3b543687e7bc96bd64622 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 4 Apr 2026 19:03:14 +0000 Subject: [PATCH] test: add missing exportVariable and setOutput mocks to parse_mcp_gateway_log test The test mock for core was missing exportVariable and setOutput methods. When token-usage.jsonl exists during the test run, writeStepSummaryWithTokenUsage calls coreObj.exportVariable() and coreObj.setOutput() if token data is present, causing the test to fail with 'not a function' errors and preventing summary.write() from being called. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- actions/setup/js/parse_mcp_gateway_log.test.cjs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/actions/setup/js/parse_mcp_gateway_log.test.cjs b/actions/setup/js/parse_mcp_gateway_log.test.cjs index 673ff75be80..b75a171a5b9 100644 --- a/actions/setup/js/parse_mcp_gateway_log.test.cjs +++ b/actions/setup/js/parse_mcp_gateway_log.test.cjs @@ -286,6 +286,8 @@ Some content here.`; warning: vi.fn(), error: vi.fn(), setFailed: vi.fn(), + exportVariable: vi.fn(), + setOutput: vi.fn(), summary: { addRaw: vi.fn().mockReturnThis(), addDetails: vi.fn().mockReturnThis(),