refactor: remove nock definition file#28031
Conversation
nock already has great types built in, we should not be overriding the limiting the type inference from nock with out own definitions file
|
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsE2E Test Selection: Key analysis:
No E2E Detox test tags need to run for this change. Performance Test Selection: |
|



nock already has great types built in, we should not be overriding the limiting the type inference from nock with our own definitions file.
Description
Changelog
CHANGELOG entry: refactor: remove nock definition file
Related issues
Fixes: from a DX perspective, the definitions override is incredibly limiting which prevents us from fully utilising the nock API
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist
Note
Low Risk
Low risk because this only removes a test-only TypeScript declaration override and relies on
nock’s published types; primary risk is minor compile-time type changes in component-view test mocks.Overview
Removes the local
tests/component-view/api-mocking/nock.d.tsmodule declaration that was overridingnocktypings, so component-view API mock helpers now usenock’s upstream TypeScript definitions and benefit from full type inference.Written by Cursor Bugbot for commit 9bd94b4. This will update automatically on new commits. Configure here.