Abhi0505-kinagi opened a new pull request, #8872: URL: https://github.com/apache/hadoop/pull/8872
### Description of PR Related to #8864. Dependabot PR #8864 (vitest / @vitest/coverage-v8 / @vitest/mocker 3.2.4 -> 5.0.5) fails mvninstall for hadoop-yarn-capacity-scheduler-ui. Root cause: vitest 5.0.5 declares peerOptional @types/node "^22.0.0 || >=24.0.0", but the module pins @types/node ^20, so npm ci fails with ERESOLVE. After that, tsc reports 835 missing-matcher errors (e.g. toBeInTheDocument) in test files unless the jest-dom import in vitest-setup.ts is changed to @testing-library/jest-dom/vitest. Changes: - bump vitest, @vitest/coverage-v8, @vitest/mocker to 5.0.5 - bump @types/node to ^22 (matches Node 22.16.0 used by the build) - vitest-setup.ts: import '@testing-library/jest-dom/vitest' ### How was this patch tested? Node 22.16.0, npm 10.9.2, in src/main/webapp: - npm ci - npm run typecheck - npm run lint - npx vitest run (92 files, 1522 tests passed) - npm run build Not tested with the full Maven build (mvn); relying on Yetus for that. Contains content generated by Claude. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
