Need to fail your tests when some text is output?
We use this because we were tired of React warnings slipping into our code base unnoticed.
npm install --save-dev fail-tests-on-text
;; // In your test setup somewhere. This works great for catching React warnings (but will catch other stuff too!)
Now any test that causes a React warning to be logged to the console will fail.