fix: add cross-suite nock state corruption fix#312
Conversation
- Downgrade nock from 15.0.0-beta.7 to ^14.0.10 - Add tests/setup.ts with nock.cleanAll() and nock.restore() in afterAll - Add setupFilesAfterEnv in jest.config.js to wire up the setup file - No callback API changes needed (nock 14 uses this.req pattern) Co-authored-by: SoulPancake <[email protected]>
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ 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 |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## test/pr-285-nocks #312 +/- ##
====================================================
Coverage ? 88.61%
====================================================
Files ? 25
Lines ? 1493
Branches ? 279
====================================================
Hits ? 1323
Misses ? 148
Partials ? 22 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Description
What problem is being solved?
How is it being solved?
What changes are made to solve it?
References
Review Checklist
main