Submit
Path:
~
/
/
usr
/
share
/
grafana
/
public
/
test
/
core
/
utils
/
File Content:
silenceConsoleOutput.ts
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()); jest.spyOn(console, 'warn').mockImplementation(jest.fn()); }); afterEach(() => { jest.spyOn(console, 'log').mockRestore(); jest.spyOn(console, 'error').mockRestore(); jest.spyOn(console, 'debug').mockRestore(); jest.spyOn(console, 'info').mockRestore(); jest.spyOn(console, 'warn').mockRestore(); }); };
Submit
FILE
FOLDER
INFO
Name
Size
Permission
Action
silenceConsoleOutput.ts
653 bytes
0644
version.test.ts
1789 bytes
0644
N4ST4R_ID | Naxtarrr