test(api): Enhance async service layer mocking for resume upload route#8140
test(api): Enhance async service layer mocking for resume upload route#8140ThePriyanuj wants to merge 2 commits into
Conversation
|
This pull request enhances the testing framework by implementing mock integration tests for the resume upload route, which is a crucial part of our API. It builds on previous decisions to ensure that tests remain hermetic and deterministic, validating interactions with mocked dependencies without real network I/O. Thank you for your efforts in cleaning up the commit history and resolving CI issues. Looking forward to your review! |
513d8dd to
6bb7cd8
Compare
6bb7cd8 to
78bdbc1
Compare
📦 Next.js Bundle Size Report (Gzipped Sizes)✨ No significant bundle size changes detected. 📊 Summary of Totals
|
|
Hi @Aamod007! The new PR is up and the CI pipeline is 100% green. 🟢 I successfully implemented the Vitest mock class structure without triggering any ESLint any rules, and fixed the RateLimiter method signature updates. Could you please review and re-apply the level:intermediate and quality:clean labels from the old closed PR (#8039) when you have a moment? Thank you! |
Closes #6806
Note: Replacing PR #8039 to provide a completely clean Git history after rebasing.
Implemented 5 mock integration tests for the resume upload route. This isolated test suite successfully bypasses the RateLimiter and parseResume functions using asynchronous service layer stubs.
Hi @Aamod007 — I rebased with the latest
mainto resolve the upstream CI pipeline failures and wiped all previouspackage-lock.jsonmerge conflicts. This PR is now compressed into a single clean commit containing only the isolatedroute.mock-integrations.test.tsmodifications. Ready for your review!