From ce82ab3c86ea9b3e19bee29014e2d897f20b2665 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Mierzwa?= Date: Sat, 28 Sep 2019 19:13:36 +0100 Subject: [PATCH] fix(tests): update deprecation warning for react 16.10 --- ui/src/setupTests.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/src/setupTests.js b/ui/src/setupTests.js index 1233ffcd8..a4f9c5ffd 100644 --- a/ui/src/setupTests.js +++ b/ui/src/setupTests.js @@ -17,7 +17,7 @@ global.fetch = require("jest-fetch-mock"); // ensure that all console messages throw errors for (const level of ["error", "warn", "info", "log", "trace"]) { // https://reactjs.org/blog/2019/08/08/react-v16.9.0.html#new-deprecations - const reactDeprecationWarning = /.*has been renamed, and is not recommended for use\. See https:\/\/fb.me\/react-async-component-lifecycle-hooks for details.*/; + const reactDeprecationWarning = /.*has been renamed, and is not recommended for use.*/; global.console[level] = (message, ...args) => { if (reactDeprecationWarning.test(message) === false) { throw new Error(`message=${message} args=${args}`);