Files
ForgeBase/Max Avatar/tests/unit/windowBridge.test.ts
T
william 2363dc8164 chore(cleanup): remove old SQLite coach pipeline
The entire local-SQLite Coach teaching pipeline (objective/level/plan/module
agents, course-build stepper, written-exercise and drawing windows, review
scheduler, screen/camera vision capture for blockage detection, and their
renderer views) is retired: it will be replaced by a brand new 7-agent
pipeline living server-side in Max API/Postgres, built in a later step.

Removes src/main/coach/, the coach and vision skill definitions, the coach
renderer views and CourseBuildStepper, drawRoughShapes, useCameraCapture,
the camera-frame IPC bridge, and the shared coach/courseBuild/drawing
types. Strips the corresponding pipeline guard-rails, system-prompt
instructions and IPC handlers from openrouter.ts/index.ts/preload. Drops
the now-unused mermaid/roughjs dependencies.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-10-31 19:22:46 +01:00

17 lines
596 B
TypeScript

import { describe, it, expect, vi } from 'vitest'
const { setMainWindow, sendToRenderer } = await import('../../src/main/windowBridge')
describe('sendToRenderer()', () => {
it('should do nothing when no main window has been set', () => {
expect(() => sendToRenderer('some-channel', 1, 2)).not.toThrow()
})
it('should forward the channel and args to the main window webContents', () => {
const send = vi.fn()
setMainWindow({ webContents: { send } } as never)
sendToRenderer('some-channel', 'a', 'b')
expect(send).toHaveBeenCalledWith('some-channel', 'a', 'b')
})
})