Merge pull request #91 from 777genius/feat/tmux-optional-process-backend

test(team): strengthen tmux decoupling checks
This commit is contained in:
Илия 2026-04-28 17:49:40 +03:00 committed by GitHub
commit 1d19a59b12
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 5 deletions

View file

@ -637,6 +637,7 @@ describe('TeamProvisioningService', () => {
await svc.getTeamAgentRuntimeSnapshot('runtime-team');
expect(listTmuxPaneRuntimeInfoForCurrentPlatform).not.toHaveBeenCalled();
expect(listTmuxPanePidsForCurrentPlatform).not.toHaveBeenCalled();
});
it('exposes providerBackendId from the live run request when available', async () => {

View file

@ -54,10 +54,6 @@ async function flushReact(): Promise<void> {
await Promise.resolve();
}
function withoutNumberGroupSeparators(value: string | null | undefined): string {
return (value ?? '').replace(/[\s,\u00a0\u202f]/g, '');
}
describe('TokenUsageDisplay', () => {
afterEach(() => {
document.body.innerHTML = '';
@ -93,8 +89,9 @@ describe('TokenUsageDisplay', () => {
});
const popover = document.querySelector('[role="tooltip"]');
const expectedTotalTokens = new Intl.NumberFormat().format(2250);
expect(popover).toBeTruthy();
expect(withoutNumberGroupSeparators(popover?.textContent)).toContain('2250');
expect(popover?.textContent).toContain(expectedTotalTokens);
expect(popover?.textContent).toContain('500 (25.0% of prompt input)');
expect(popover?.textContent).not.toContain('of context');