Checklist(Check off all the items before submitting)
[ ] Build process is done without errors. All tests pass in the /lib directory.
[ ] Self-reviewed the code before submitting.
[ ] Meets accessibility standards.
[ ] Added/updated documentation to /website as needed.
[ ] Added/updated tests as needed.
Description
I realised that, in local environment, when running all the functional tests at once (using npm run test), a timeout error was sometimes being thrown at FileInput.test.js. The default timer for waitFor is set to 1000ms, so increasing it to 2500ms allows for more consistency when running tests. This should not be the final approach for this due to existing room for improvement of functional tests efficiency (wrapping tests inside act as recommended, configuring parallel execution, identifying and solving specific bottlenecks...) However, I considered this to be an non-costly and appropiate workaround for now.
Checklist (Check off all the items before submitting)
/lib
directory./website
as needed.Description I realised that, in local environment, when running all the functional tests at once (using npm run test), a timeout error was sometimes being thrown at
FileInput.test.js
. The default timer forwaitFor
is set to 1000ms, so increasing it to 2500ms allows for more consistency when running tests. This should not be the final approach for this due to existing room for improvement of functional tests efficiency (wrapping tests inside act as recommended, configuring parallel execution, identifying and solving specific bottlenecks...) However, I considered this to be an non-costly and appropiate workaround for now.