[GH-ISSUE #20] M001/S01/T04: Write integration tests and verify end-to-end patch pipeline #21

Open
opened 2026-06-04 14:29:27 -04:00 by yindo · 0 comments
Owner

Originally created by @BillyOutlast on GitHub (May 16, 2026).
Original GitHub issue: https://github.com/Heretek-AI/GDevelop-BYOK/issues/20

T04: Write integration tests and verify end-to-end patch pipeline

All pieces (proxy modules, IPC handler, patches) need integration verification. This task validates the full pipeline: patches apply cleanly, proxy modules work, and the IPC path is exercisable. (1) Update test-patches.js to handle all 9 entries (currently expects 8). Adjust matchCount expectations from 8 to 9. (2) Create test/integration/proxy-ipc.test.js — uses node:test to simulate the full IPC flow: mock ipcMain/ipcRenderer, register handlers, invoke with chat mode, verify response shape. Include sabotage test: register handler with mode=chat and a deliberately bad config → verify ByokError surfaces. (3) Run full test suite: node scripts/restore-fixtures.js && node scripts/patch.js --repo test/fixtures --strict — verify all 9 PASS. Run node scripts/test-patches.js — verify all tests pass. Run node --test test/unit/ test/integration/ — verify all unit + integration tests pass.

Files

  • scripts/test-patches.js
  • test/integration/proxy-ipc.test.js
  • scripts/restore-fixtures.js

Verification

  • node scripts/test-patches.js 2>&1 && node --test test/unit/ test/integration/ 2>&1
Originally created by @BillyOutlast on GitHub (May 16, 2026). Original GitHub issue: https://github.com/Heretek-AI/GDevelop-BYOK/issues/20 ## T04: Write integration tests and verify end-to-end patch pipeline All pieces (proxy modules, IPC handler, patches) need integration verification. This task validates the full pipeline: patches apply cleanly, proxy modules work, and the IPC path is exercisable. (1) Update test-patches.js to handle all 9 entries (currently expects 8). Adjust matchCount expectations from 8 to 9. (2) Create test/integration/proxy-ipc.test.js — uses node:test to simulate the full IPC flow: mock ipcMain/ipcRenderer, register handlers, invoke with chat mode, verify response shape. Include sabotage test: register handler with mode=chat and a deliberately bad config → verify ByokError surfaces. (3) Run full test suite: node scripts/restore-fixtures.js && node scripts/patch.js --repo test/fixtures --strict — verify all 9 PASS. Run node scripts/test-patches.js — verify all tests pass. Run node --test test/unit/ test/integration/ — verify all unit + integration tests pass. ### Files - `scripts/test-patches.js` - `test/integration/proxy-ipc.test.js` - `scripts/restore-fixtures.js` ### Verification - [ ] node scripts/test-patches.js 2>&1 && node --test test/unit/ test/integration/ 2>&1
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Heretek-AI/GDevelop-BYOK#21