4 ms·
Nah. console.log is not really testable. Well from a very pedantic and technical perspective stdout can be tested but overall IO cannot be unit tested. It can
by ninetyninenine 3y ago
Nah. console.log is not really testable.
Well from a very pedantic and technical perspective stdout can be tested but overall IO cannot be unit tested.
It can be tested via e2e or integration tests meaning you need external factors to verify a side effect occurred.