test(onedrive): skip integration suite when ONEDRIVE_ACCESS_TOKEN is missing - #801
test(onedrive): skip integration suite when ONEDRIVE_ACCESS_TOKEN is missing#801Rudra2637 wants to merge 1 commit into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
Included review availability: Your plan includes up to 10 reviews per rolling hour; 9 remain after this review. 📝 WalkthroughWalkthroughOneDrive integration tests now normalize credentials once, warn and skip the suite when the access token is missing, and remove per-test setup guards. Existing API, database, and operation-specific assertions remain unchanged. ChangesOneDrive integration test execution
Estimated code review effort: 2 (Simple) | ~10 minutes Merge Risk: ⚪ Minimal · up to This localized test-only change makes the OneDrive integration suite skip when credentials are unavailable, with no actionable merge-blocking risk remaining after normal checks and review. Possibly related issues
Possibly related PRs
Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Greptile SummaryThe PR changes the OneDrive integration suite to report a skipped suite when its access token is unavailable instead of silently passing individual tests.
Confidence Score: 4/5The PR appears safe to merge, with only a non-blocking request to document or avoid the new token assertion. The suite-level credential gate is consistent with repository test setup and prevents credential-dependent setup from running when skipped; the remaining concern is limited to maintainability of the assertion. Files Needing Attention: packages/onedrive/integration.test.ts Important Files Changed
Reviews (1): Last reviewed commit: "test(onedrive): skip integration suite w..." | Re-trigger Greptile |
Description
Fixes #722
packages/onedrive/integration.test.tspreviously returned early inside each individual test case (if (!setup) return), causing Jest to report the suite as passed rather than skipped whenONEDRIVE_ACCESS_TOKENwas not set.This PR updates
packages/onedrive/integration.test.tsto follow the standard integration test pattern:configuredAccessTokenandhasCredentials.describeIf(hasCredentials ? describe : describe.skip) to skip the suite when credentials are not configured.console.warnonce ifONEDRIVE_ACCESS_TOKENis missing.if (!setup) returnguards without altering assertions.Checklist
pnpm lintand all checks passpnpm typecheckand there are no TypeScript errorspnpm buildand all packages build successfullypnpm testand all tests passScreenshots / Demos (if applicable)
Summary by CodeRabbit