An open-source, faster Devin alternative
TypeScript
test: type the persisted onboarding choice mock
Igor Zalutski via Computerd3f66342ed3d
diff --git a/web/src/managed-agents/AgentStep.test.tsx b/web/src/managed-agents/AgentStep.test.tsxindex d8721c6d..2a589e82 100644--- a/web/src/managed-agents/AgentStep.test.tsx+++ b/web/src/managed-agents/AgentStep.test.tsx@@ -841,10 +841,12 @@ describe('choosing the coding agent', () => {let savedAgent: ComputerAgent = { ...withCodex, choice: 'codex' }await show({ ...empty, agent: savedAgent }, 'Choose your coding agent')await settle(() => command()?.includes(' codex ') === true, 'codex command')- computerApi.setAgentChoice.mockImplementation(async (choice) => {- savedAgent = { ...savedAgent, choice }- return savedAgent- })+ computerApi.setAgentChoice.mockImplementation(+ (choice: ComputerAgent['choice']) => {+ savedAgent = { ...savedAgent, choice }+ return Promise.resolve(savedAgent)+ },+ )act(() => claudeCard().click())await settle(