What does the following mock do?
jest.spyOn(console, "log").mockImplementation(() => {});
Logs all console messages to the test output.
Replaces the console.log function with a mocked implementation.
Prevents console messages from being logged.
Deletes the console.log method entirely.
This question is part of this quiz :
Testing with TypeScript Quiz