How can I make Jest test for a thrown error silently
I found the one line answer to my issue here.
Adding spyOn(console, "error");
(in the test that expects an error) suppresses the error from being logged.
I found the one line answer to my issue here.
Adding spyOn(console, "error");
(in the test that expects an error) suppresses the error from being logged.