Files
Netcatty/components/LogView.accent.test.ts
T
Cursor Agentand陈大猫 74faa46744 perf: finish StrictMode mega-subscriber plan (accent isolation + docs)
Stabilize published terminal themes across custom-accent drag, apply accent
at chrome/log leaves and CSS injection only, land Phase 0 design/plan docs,
and lock Host-bag / Bugbot-clean contracts for the isolation checklist.

Co-authored-by: 陈大猫 <binaricat@users.noreply.github.com>
2026-08-07 14:38:00 +00:00

16 lines
615 B
TypeScript

import assert from 'node:assert/strict';
import { readFileSync } from 'node:fs';
import test from 'node:test';
const source = readFileSync(new URL('./LogView.tsx', import.meta.url), 'utf8');
test('LogView applies live custom accent at the leaf from appearanceChromeStore', () => {
assert.match(source, /useAppearanceChromeStore/);
assert.match(source, /applyCustomAccentToTerminalTheme\(baseTheme, accentMode, customAccent\)/);
// Must not rely on an accent-baked defaultTerminalTheme from AppShell bags.
assert.match(
source,
/published defaultTerminalTheme is the stable base catalog/,
);
});