What do you want to save?
Add Code snippet
New code examples
-
Other 2021-11-09 19:32:13
how to spy on console.error jest
beforeAll(() => { // Create a spy on console (console.log in this case) and provide some mocked implementation // In mocking global objects it's usually better than simple `jest.fn()` // because you can `unmock` it in clean way doing `mockR... Add solution
Best helpers
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5