From 846f7958a3d9fb1e890c987083a8b86bd689053d Mon Sep 17 00:00:00 2001 From: Adam Horodyski Date: Wed, 11 Oct 2023 10:41:13 +0200 Subject: [PATCH] fix: increase jest timeout for performance tests --- tests/perf-test/SidebarLinks.perf-test.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/perf-test/SidebarLinks.perf-test.js b/tests/perf-test/SidebarLinks.perf-test.js index 1772c20fbf72..7c2d91b3356c 100644 --- a/tests/perf-test/SidebarLinks.perf-test.js +++ b/tests/perf-test/SidebarLinks.perf-test.js @@ -9,7 +9,12 @@ import waitForBatchedUpdates from '../utils/waitForBatchedUpdates'; import wrapOnyxWithWaitForBatchedUpdates from '../utils/wrapOnyxWithWaitForBatchedUpdates'; import variables from '../../src/styles/variables'; -jest.setTimeout(10000); +/** + * Performance tests with Reassure can require big timeouts as all runs + * for a test have to be executed within this limit. (default runs=10) + * This also includes manual garbage collection between them. + */ +jest.setTimeout(60000); jest.mock('../../src/libs/Permissions'); jest.mock('../../src/libs/Navigation/Navigation');