fix(tui): publish welcome acknowledgement atomically

This commit is contained in:
NI0317
2026-07-30 23:18:51 +08:00
parent 605136d18a
commit 05b84f4458
5 changed files with 17 additions and 24 deletions

View File

@@ -101,7 +101,7 @@ describe('TUI first-run welcome acknowledgement', () => {
recursive: true,
})
await expect(hasTuiFirstRunWelcomeAcknowledgement(home)).rejects.toThrow('is not a file')
await expect(acknowledgeTuiFirstRunWelcome(home)).rejects.toThrow('is not a file')
await expect(acknowledgeTuiFirstRunWelcome(home)).rejects.toThrow()
})
it('detects only explicit ASCII-only terminal environments', () => {