From 63609a614773ee6294e5ce431d3ceea7c30c88de Mon Sep 17 00:00:00 2001 From: Philippe Perrin Date: Wed, 20 Apr 2022 12:57:18 +0200 Subject: [PATCH] [NO-JIRA] Fix RTL timeout FPs --- server/sonar-web/config/jest/SetupReactTestingLibrary.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/server/sonar-web/config/jest/SetupReactTestingLibrary.ts b/server/sonar-web/config/jest/SetupReactTestingLibrary.ts index 7f2008bc384..6a000da4d22 100644 --- a/server/sonar-web/config/jest/SetupReactTestingLibrary.ts +++ b/server/sonar-web/config/jest/SetupReactTestingLibrary.ts @@ -17,4 +17,9 @@ * along with this program; if not, write to the Free Software Foundation, * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ +import { configure } from '@testing-library/dom'; import '@testing-library/jest-dom'; + +configure({ + asyncUtilTimeout: 2000 +}); -- 2.39.5