fix(FN-1446): improve test reliability and git command TTY handling

- Fix QuickEntryBox focus restoration after task creation with proper submission state tracking
- Improve QuickEntryBox tests by using explicit promise resolution and proper afterEach cleanup with act() wrappers
- Fix TaskCard tests to use proper act() wrappers for async operations
- Add stdio: 'pipe' to all git execSync calls to prevent TTY interaction issues in CI environments
- Add test log suppression for noisy subagent and pi-claude-cli output in vitest setup
This commit is contained in:
gsxdsm
2026-04-10 19:47:41 -07:00
parent b8a0b6ccbf
commit c9a1e94bbe
4 changed files with 114 additions and 5 deletions

View File

@@ -218,8 +218,10 @@ describe("QuickEntryBox", () => {
});
});
afterEach(() => {
vi.runOnlyPendingTimers();
afterEach(async () => {
await act(async () => {
vi.runOnlyPendingTimers();
});
vi.useRealTimers();
localStorage.clear();
});