First batch of fixing tests to use best practices. (#11964)

This commit is contained in:
Jacob Richman
2025-10-25 14:41:53 -07:00
committed by GitHub
parent 8352980f01
commit ee66732ad2
48 changed files with 1128 additions and 1113 deletions
@@ -12,7 +12,6 @@ import { KeypressProvider } from '../contexts/KeypressContext.js';
import { SettingsContext } from '../contexts/SettingsContext.js';
import { DEFAULT_THEME, themeManager } from '../themes/theme-manager.js';
import { act } from 'react';
import { waitFor } from '@testing-library/react';
const createMockSettings = (
userSettings = {},
@@ -127,7 +126,7 @@ describe('ThemeDialog Snapshots', () => {
stdin.write('\x1b');
});
await waitFor(() => {
await vi.waitFor(() => {
expect(mockOnCancel).toHaveBeenCalled();
});
});