Skip to content

Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure

TypeScript

test(hcc): drop unused D3 logger spy bindings

Alfredo Lopezca4a2747c34b
diff --git a/host-context-controller/package-lock.json b/host-context-controller/package-lock.json
index 51ed25b5f..b2905694f 100644
--- a/host-context-controller/package-lock.json
+++ b/host-context-controller/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "clerum-host-context-controller",
- "version": "0.1.339",
+ "version": "0.1.340",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "clerum-host-context-controller",
- "version": "0.1.339",
+ "version": "0.1.340",
"license": "SEE LICENSE IN LICENSE",
"dependencies": {
"@clerum/codex-catalog-projection": "file:../packages/codex-catalog-projection",
diff --git a/host-context-controller/package.json b/host-context-controller/package.json
index 6f979fbfc..81dfb1b9c 100644
--- a/host-context-controller/package.json
+++ b/host-context-controller/package.json
@@ -1,6 +1,6 @@
{
"name": "clerum-host-context-controller",
- "version": "0.1.339",
+ "version": "0.1.340",
"description": "Host Context Controller - provides McpServer CRDs to mcp-host via REST API",
"main": "dist/main.js",
"engines": {
diff --git a/host-context-controller/src/gfsReconciler.test.ts b/host-context-controller/src/gfsReconciler.test.ts
index 208f66bbc..77519b85b 100644
--- a/host-context-controller/src/gfsReconciler.test.ts
+++ b/host-context-controller/src/gfsReconciler.test.ts
@@ -465,14 +465,14 @@ describe('GfsReconciler resync pass log (D3)', () => {
const api = new FakeApi()
api.writerNeedsUpdate = false
api.applyOutcome = outcome
- const info = vi.spyOn(hccLogger, 'info').mockImplementation(() => {})
+ vi.spyOn(hccLogger, 'info').mockImplementation(() => {})
await new GfsReconciler(api, config).fullReconcile([gfs])
const line = resyncCalls().at(-1)
const fields = line?.[1] as { objects: number; skips: number; writes: number }
expect(fields.writes).toBe(0)
expect(fields.skips).toBe(fields.objects)
expect(fields.objects).toBeGreaterThan(0)
- info.mockRestore()
+ vi.mocked(hccLogger.info).mockRestore()
}
})
@@ -481,7 +481,7 @@ describe('GfsReconciler resync pass log (D3)', () => {
api.writerNeedsUpdate = false
api.applyOutcome = 'up_to_date'
api.readerApplyOutcome = 'replaced'
- const info = vi.spyOn(hccLogger, 'info').mockImplementation(() => {})
+ vi.spyOn(hccLogger, 'info').mockImplementation(() => {})
await new GfsReconciler(api, config).fullReconcile([gfs])
const line = resyncCalls().at(-1)
expect(line?.[1]).toEqual(expect.objectContaining({ scope: 'GFS', writes: 1 }))
diff --git a/host-context-controller/src/llmHookReconciler.test.ts b/host-context-controller/src/llmHookReconciler.test.ts
index ac83bd2e9..1792f3841 100644
--- a/host-context-controller/src/llmHookReconciler.test.ts
+++ b/host-context-controller/src/llmHookReconciler.test.ts
@@ -1085,7 +1085,7 @@ describe('LlmHookReconciler', () => {
it('D3: an already-synced LlmHook pass logs writes 0 and skips equal to objects', async () => {
const hook = await seedMatchingHook()
- const info = vi.spyOn(hccLogger, 'info').mockImplementation(() => {})
+ vi.spyOn(hccLogger, 'info').mockImplementation(() => {})
await reconciler.fullReconcile([hook])
const line = resyncCalls().at(-1)
expect(line?.[0]).toBe('Resync pass completed')
@@ -1119,7 +1119,7 @@ describe('LlmHookReconciler', () => {
},
},
})
- const info = vi.spyOn(hccLogger, 'info').mockImplementation(() => {})
+ vi.spyOn(hccLogger, 'info').mockImplementation(() => {})
await reconciler.fullReconcile([hook])
expect(appsApi.replaceNamespacedDeployment).toHaveBeenCalledTimes(1)
const line = resyncCalls().at(-1)
@@ -1138,7 +1138,7 @@ describe('LlmHookReconciler', () => {
await sweepHold
return { items: [] }
})
- const info = vi.spyOn(hccLogger, 'info').mockImplementation(() => {})
+ vi.spyOn(hccLogger, 'info').mockImplementation(() => {})
const pass = reconciler.fullReconcile([hook])
await vi.waitFor(() => expect(sweepStarted).toBe(true))
const live = await appsApi.readNamespacedDeployment()