mirror of
https://github.com/Heretek-AI/GDevelop-BYOK.git
synced 2026-07-01 18:48:04 -04:00
[GH-ISSUE #20] M001/S01/T04: Write integration tests and verify end-to-end patch pipeline #21
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.jstest/integration/proxy-ipc.test.jsscripts/restore-fixtures.jsVerification