mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
* Refactor: Replaces initLock with state machine * Refactor: removes some states for now * Refactor: adds loading state in OptionsPicker * Refactor: major refactor of load state * Refactor: fixes updating graph in parallell * Refactor: moves error handling to updateOptions * Refactor: fixes the last cases * Tests: disables variable e2e again * Chore: removes nova config * Refactor: small changes when going through the code again * Refactor: fixes typings * Refactor: changes after PR comments * Refactor: split up onTimeRangeUpdated and fixed some error handling * Tests: removes unused func * Tests: fixes typing
16 lines
543 B
TypeScript
16 lines
543 B
TypeScript
export const silenceConsoleOutput = () => {
|
|
beforeEach(() => {
|
|
jest.spyOn(console, 'log').mockImplementation(jest.fn());
|
|
jest.spyOn(console, 'error').mockImplementation(jest.fn());
|
|
jest.spyOn(console, 'debug').mockImplementation(jest.fn());
|
|
jest.spyOn(console, 'info').mockImplementation(jest.fn());
|
|
});
|
|
|
|
afterEach(() => {
|
|
jest.spyOn(console, 'log').mockRestore();
|
|
jest.spyOn(console, 'error').mockRestore();
|
|
jest.spyOn(console, 'debug').mockRestore();
|
|
jest.spyOn(console, 'info').mockRestore();
|
|
});
|
|
};
|