From 5949944c1c4c96b111d52f3930cd70d61b48587e Mon Sep 17 00:00:00 2001 From: Ricky Hanlon Date: Thu, 17 Aug 2023 19:00:41 -0400 Subject: [PATCH] Fix tests --- scripts/jest/setupTests.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/jest/setupTests.js b/scripts/jest/setupTests.js index ddd1c2a03268d..733c201d79210 100644 --- a/scripts/jest/setupTests.js +++ b/scripts/jest/setupTests.js @@ -169,7 +169,7 @@ if (process.env.REACT_CLASS_EQUIVALENCE_TEST) { if (!message) { return message; } - const re = /error-decoder.html\?invariant=(\d+)([^\s]*)/; + const re = /react.dev\/errors\/(\d+)?([^\s]*)/; const matches = message.match(re); if (!matches || matches.length !== 3) { return message;