Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure
TypeScript
test(profile-ui): isolate recovery response fixture
Josué35370e83b171
diff --git a/profile-ui/app/components/__tests__/SettingsContent.test.tsx b/profile-ui/app/components/__tests__/SettingsContent.test.tsxindex 5c3647565..373fa36a3 100644--- a/profile-ui/app/components/__tests__/SettingsContent.test.tsx+++ b/profile-ui/app/components/__tests__/SettingsContent.test.tsx@@ -5,7 +5,6 @@ import { cleanup, fireEvent, render, screen, waitFor, within } from '@testing-liimport type { DesktopEnvironmentResponse } from '@/app/types/api'import type { Me } from '@/app/types/profile'import desktopEnvironmentFixture from '@/test/fixtures/desktop-environment-response.json'-import { PASSWORD_CREDENTIAL_CHANGED_PUBLIC_RESPONSE } from '../../../../external-rest-api/src/routes/mePasswordErrors.js'import { SettingsContent } from '../../settings/SettingsContent'const mocks = vi.hoisted(() => ({@@ -156,8 +155,9 @@ describe('Settings desktop setup handoff', () => {describe('Settings password update recovery messaging', () => {it('shows actionable guidance from the External REST credential-change response', async () => {- const publicResponse = PASSWORD_CREDENTIAL_CHANGED_PUBLIC_RESPONSE- const publicMessage = publicResponse.body.error+ const publicMessage =+ 'Your password changed during this request. Sign in again with your new password.'+ const publicResponse = { status: 409, body: { error: publicMessage } }const actualApi = await vi.importActual<typeof import('@lib/api')>('@lib/api')mocks.updatePassword.mockImplementation(actualApi.updatePassword)const upstreamFetch = vi.spyOn(globalThis, 'fetch').mockResolvedValue(diff --git a/profile-ui/package-lock.json b/profile-ui/package-lock.jsonindex 21e2516b4..99d30b777 100644--- a/profile-ui/package-lock.json+++ b/profile-ui/package-lock.json@@ -1,12 +1,12 @@{"name": "clerum-profile-ui",- "version": "0.1.167",+ "version": "0.1.168","lockfileVersion": 3,"requires": true,"packages": {"": {"name": "clerum-profile-ui",- "version": "0.1.167",+ "version": "0.1.168","dependencies": {"@clerum/desktop-app-links": "file:../packages/desktop-app-links","@clerum/frontend-components": "file:../packages/frontend-components",diff --git a/profile-ui/package.json b/profile-ui/package.jsonindex a7555ae59..0556dd854 100644--- a/profile-ui/package.json+++ b/profile-ui/package.json@@ -1,6 +1,6 @@{"name": "clerum-profile-ui",- "version": "0.1.167",+ "version": "0.1.168","private": true,"scripts": {"dev": "next dev",