Closed TenzDelek closed 4 months ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Updated (UTC) |
---|---|---|---|
nodejs-org | ✅ Ready (Inspect) | Visit Preview | May 25, 2024 3:35pm |
Lighthouse Results URL | Performance | Accessibility | Best Practices | SEO | Report |
---|---|---|---|---|---|
/en | 🟢 99 | 🟢 100 | 🟢 100 | 🟢 91 | 🔗 |
/en/about | 🟢 100 | 🟢 100 | 🟢 100 | 🟢 91 | 🔗 |
/en/about/previous-releases | 🟢 99 | 🟢 100 | 🟢 100 | 🟢 92 | 🔗 |
/en/download | 🟢 95 | 🟢 100 | 🟢 100 | 🟢 91 | 🔗 |
/en/blog | 🟢 99 | 🟢 100 | 🟢 100 | 🟢 92 | 🔗 |
Description
as mentioned in https://github.com/nodejs/nodejs.org/pull/6728#issuecomment-2122111441 We encountered an issue with the useBottomScrollListener tests where a TypeError is thrown, indicating that act is not a function. This error prevents the tests from running correctly.
Error Message The specific error message is:
This error occurs in the following test cases within hooks/react-client/tests/useBottomScrollListener.test.mjs: the cause of it was importing the act function from react instead of @testing-library/react. The act function from react is not compatible with the testing setup provided by React Testing Library, leading to the observed TypeError.
validation
Before:
after:
Check List
npm run format
to ensure the code follows the style guide.npm run test
to check if all tests are passing.npx turbo build
to check if the website builds without errors.