This content originally appeared on Krasimir Tsonev - blog and was authored by Krasimir Tsonev - blog
I'm recently working on two OS libraries. Both I'm unit testing with Jest. There is some logic that leads to a warning which I'm doing with console.warn
. In the unit tests this is happening quite often so I want to suppress it. Also I want to verify that it happens on the right place.
This content originally appeared on Krasimir Tsonev - blog and was authored by Krasimir Tsonev - blog
Krasimir Tsonev - blog | Sciencx (2021-02-07T21:52:56+00:00) Mocking console methods with Jest. Retrieved from https://www.scien.cx/2021/02/07/mocking-console-methods-with-jest/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.