import type { DevframeHubContext } from '@devframes/hub/node' import { readFileSync } from 'node:fs' import { fileURLToPath } from 'node:url' import { describe, expect, it } from 'vitest' import { createUi } from './index' function createContext(): DevframeHubContext { return { staticConfig: {} } as DevframeHubContext } describe('createUi branding background', () => { it('defines the viewer background through a static token', () => { expect.assertions(6) const html = readFileSync(fileURLToPath(new URL('../dist/client/standalone/index.html', import.meta.url)), 'utf8') // The build minifies the inline