MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / writeValidTuiConfig

Function writeValidTuiConfig

apps/kimi-code/test/cli/doctor.test.ts:70–88  ·  view source on GitHub ↗
(path = join(dir, 'tui.toml'))

Source from the content-addressed store, hash-verified

68}
69
70async function writeValidTuiConfig(path = join(dir, 'tui.toml')): Promise<void> {
71 await writeFile(
72 path,
73 `
74theme = "dark"
75
76[editor]
77command = "code --wait"
78
79[notifications]
80enabled = true
81notification_condition = "unfocused"
82
83[upgrade]
84auto_install = true
85`,
86 'utf-8',
87 );
88}
89
90describe('kimi doctor', () => {
91 it('skips missing default config files without failing', async () => {

Callers 1

doctor.test.tsFile · 0.85

Calls 1

writeFileFunction · 0.50

Tested by

no test coverage detected