mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-10-26 19:01:39 -04:00
Adding global jest test timeout.
This commit is contained in:
parent
f0ea3351b7
commit
816b2d964d
1 changed files with 5 additions and 1 deletions
|
|
@ -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,
|
||||
}));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue