test: comprehensive test coverage + bugfixes (1821 tests, 66 files)#1566
Open
riccelso wants to merge 8 commits intoeigent-ai:mainfrom
Open
test: comprehensive test coverage + bugfixes (1821 tests, 66 files)#1566riccelso wants to merge 8 commits intoeigent-ai:mainfrom
riccelso wants to merge 8 commits intoeigent-ai:mainfrom
Conversation
- Switch vitest pool to forks with maxForks=2 to prevent OOM - Add ipcRenderer.off to test/setup.ts global mock - Update proxy.mock.ts with waitForBackendReady, substring URL matching - Add getVenvPythonPath, getPrebuiltPythonDir to environmentMocks - Add onBackendReady, restartBackend to electronMocks
…in chatStore - useIntegrationManagement: extract items/configs/email into refs to stabilize useCallback identities and prevent cascading useEffect re-registrations that caused infinite re-renders with renderHook - chatStore: add Array.isArray(res) guard to prevent crash when API returns non-array response for chat history
…n suites - Fix duplicate data-testid and API path migration in ChatBox tests - Remove invalid null/undefined prop tests from SearchInput - Update installation flow tests for waiting-backend state changes - Fix integration tests for /api/ to /api/v1/ URL path migration - Add missing QueryClientProvider in ChatBox integration test
Coverage: authStore(41), globalStore(15), sidebarStore(11), triggerStore(38), triggerTaskStore(25), activityLogStore(27), workflowViewportStore(13), pageTabStore(25), projectStore(116), skillsStore(67)
Coverage: skillToolkit(24), index(21), queryClient(12), llm(14), fileUtils(6), oauth(41), replay(22), share(7), htmlSanitization(91)
Coverage: use-app-version(6), use-is-in-view(12), use-mobile(9), useChatStoreAdapter(20), useTriggerQueries(26), useBackgroundTaskProcessor(40), useExecutionSubscription(49), useIntegrationManagement(36)
Coverage: init(52), copy(9), update(23), webview(35), envUtil(60), mcpConfig(66), process(85), safeWebContentsSend(6), log(8)
Coverage: http.ts(64), triggerApi(27), historyApi(40)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds comprehensive test coverage and fixes pre-existing bugs across the Eigent codebase.
Bug Fixes
items/configs/emailinto refs with useEffect updates, stabilized useCallback deps to prevent cascading useEffect re-registrationsArray.isArray(res)guard to prevent crash when API returns non-array responseTest Infrastructure
New Test Files (38 files, 1821 total tests)
Test plan