codeburn/tests/cli-refresh-help.test.ts
ihearttokyo 74e69ba2fd
Stabilize TUI refresh, scrolling, responsive layout, and dashboard data density (#863)
Improve dashboard refresh coordination, scrolling, responsive layout, and data-density behavior, including the Windows-safe resize correction validated on the final head.
2026-08-09 03:39:19 +03:00

15 lines
541 B
TypeScript

import { spawnSync } from 'node:child_process'
import { describe, expect, it } from 'vitest'
describe('CLI refresh help', () => {
it.each(['report', 'today', 'month'])('%s discloses the refresh floor and disable value', command => {
const result = spawnSync(process.execPath, ['--import', 'tsx', 'src/cli.ts', command, '--help'], {
cwd: process.cwd(),
encoding: 'utf8',
})
expect(result.status).toBe(0)
expect(result.stdout).toMatch(/Auto-refresh interval in seconds \(minimum 60; 0 to\s+disable\)/)
})
})