mirror of
https://github.com/grafana/grafana.git
synced 2024-11-25 18:30:41 -06:00
Search: runAllTimers => runOnlyPendingTimers (#35509)
This commit is contained in:
parent
97a59a4855
commit
8e827337ea
@ -28,7 +28,7 @@ const setup = (testProps?: Partial<Props>) => {
|
||||
...testProps,
|
||||
};
|
||||
render(<DashboardSearch {...props} />);
|
||||
jest.runAllTimers();
|
||||
jest.runOnlyPendingTimers();
|
||||
};
|
||||
|
||||
/**
|
||||
@ -63,7 +63,7 @@ describe('DashboardSearch', () => {
|
||||
const input = await screen.findByPlaceholderText('Search dashboards by name');
|
||||
await act((async () => {
|
||||
await fireEvent.input(input, { target: { value: 'Test' } });
|
||||
jest.runAllTimers();
|
||||
jest.runOnlyPendingTimers();
|
||||
}) as any);
|
||||
|
||||
expect(mockSearch).toHaveBeenCalledWith({
|
||||
|
Loading…
Reference in New Issue
Block a user