The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
test(desktop): fix default-skin tests against current main
Brooklyn Nicholsonac6079b32938
diff --git a/apps/desktop/src/themes/backend-sync.test.ts b/apps/desktop/src/themes/backend-sync.test.tsindex 84036c4039d..1bb3861da83 100644--- a/apps/desktop/src/themes/backend-sync.test.ts+++ b/apps/desktop/src/themes/backend-sync.test.ts@@ -7,6 +7,8 @@ import {__resetBackendSkinSync,ingestBackendSkin} from './backend-sync'+import * as contextModule from './context'+import * as userThemesModule from './user-themes'const skin = (name: string) => ({name,@@ -86,11 +88,12 @@ describe('ingestBackendSkin', () => {expect($pendingSkinApply.get()).toBe('default')})- it('lets the provider resolve and keep default (not retired → nous)', async () => {+ it('lets the provider resolve and keep default (not retired → nous)', () => {// skinPref / normalizeSkin must accept `default` once the backend registers- // it; RETIRED_SKINS no longer includes default (#76743 review).- const { skinPref } = await import('./context')- const { resolveTheme } = await import('./user-themes')+ // it; RETIRED_SKINS no longer includes default (#76743 review). Static+ // imports — the dynamic ones deadlocked under vitest's module runner.+ const { skinPref } = contextModule+ const { resolveTheme } = userThemesModuleingestBackendSkin({@@ -139,10 +142,12 @@ describe('ingestBackendSkin', () => {it('keys default-named skin CSS under the resolved desktop default', () => {ingestBackendSkin(skinWithCSS('default', 'body { background: red; }'), { apply: true })- expect($backendThemes.get().default).toBeUndefined()- // setTheme normalizes `default` → DEFAULT_SKIN_NAME ('nous'), so the CSS- // must be findable under that name when the theme is derived.- expect($backendCustomCSS.get().nous).toBe('body { background: red; }')+ // Since #76579 the classic `default` skin registers as its own palette+ // (label "Classic Hermes"), and the converted theme carries the customCSS+ // itself — the separate CSS store stays for built-in-named skins only.+ expect($backendThemes.get().default?.label).toBe('Classic Hermes')+ expect($backendThemes.get().default?.customCSS).toBe('body { background: red; }')+ expect($backendCustomCSS.get().nous).toBeUndefined()})it('clears customCSS when a built-in-named skin drops the field', () => {