Adding global jest test timeout.

This commit is contained in:
Roland 2025-12-05 19:55:17 -07:00 • committed by lrnselfreliance
parent f0ea3351b7
commit 816b2d964d

View file

@ -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,
}));