-
Notifications
You must be signed in to change notification settings - Fork 2
Fix test timeouts in @object-ui/components beforeAll hooks #313
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -17,7 +17,7 @@ import { | |
| // Import renderers to ensure registration | ||
| beforeAll(async () => { | ||
| await import('../renderers'); | ||
| }); | ||
| }, 30000); // Increase timeout to 30 seconds for heavy renderer imports | ||
|
Comment on lines
18
to
+20
|
||
|
|
||
| /** | ||
| * Comprehensive tests for form renderer components | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -16,7 +16,7 @@ import { | |
| // Import renderers to ensure registration | ||
| beforeAll(async () => { | ||
| await import('../renderers'); | ||
| }); | ||
| }, 30000); // Increase timeout to 30 seconds for heavy renderer imports | ||
|
Comment on lines
17
to
+19
|
||
|
|
||
| /** | ||
| * Comprehensive tests for layout renderer components | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider adding a global
testTimeoutconfiguration invitest.config.mtsinstead of setting timeouts individually in each test file. This would provide a consistent baseline for all tests and make it easier to adjust if needed:This approach is more maintainable than duplicating the timeout value across multiple test files.