From 816b2d964d6bfdcff608f966cf95bab8ea2e6cfa Mon Sep 17 00:00:00 2001 From: Roland Date: Fri, 5 Dec 2025 19:55:17 -0700 Subject: [PATCH] Adding global jest test timeout. --- app/src/setupTests.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/src/setupTests.js b/app/src/setupTests.js index 10ce102a..5ed32af5 100644 --- a/app/src/setupTests.js +++ b/app/src/setupTests.js @@ -3,7 +3,11 @@ import '@testing-library/jest-dom'; -// Mock react-stl-viewer to avoid three.js errors in test environment +// Set global Jest timeout to 30 seconds +// Tests that exceed this will fail with a clear error message identifying the failing test +jest.setTimeout(30000); + +// Mock react-stl-viewer to avoid loading heavy three.js dependency in tests jest.mock('react-stl-viewer', () => ({ StlViewer: () => null, }));