Fix missing errors from test output

Summary:
We were losing the first argument of every console.error call during tests.
This happens to be useful stuff, like react telling you how to do better testing etc, and explains the weird looking error output from the ConfigField tests.

Reviewed By: passy

Differential Revision: D17931532

fbshipit-source-id: cfeb834a4646ef68ac55f81a269bcfef7a25ea31
This commit is contained in:
John Knox
2019-10-16 01:10:23 -07:00
committed by Facebook Github Bot
parent c9d1d2c444
commit 498fa2dc85

View File

@@ -9,7 +9,7 @@
const defaultConsoleError = console.error;
console.error = function(message, ...args) {
console.error = function(...args) {
defaultConsoleError(
'console.error used in a test. This will be an error in the near future.',
);