-
Notifications
You must be signed in to change notification settings - Fork 5.4k
test: fix mocha vs jest type conflicts in test files #31049
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
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. |
Builds ready [2be0d1e]
Page Load Metrics (3837 ± 1457 ms)
Bundle size diffs
|
Builds ready [c2f5ea8]
Page Load Metrics (2750 ± 853 ms)
Bundle size diffs
|
✨ Files requiring CODEOWNER review ✨🔑 @MetaMask/accounts-engineers
✅ @MetaMask/confirmations
🔄 @MetaMask/swaps-engineers
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed only for the accounts team related files:
app/scripts/lib/snap-keyring/keyring-snaps-permissions.test.ts
app/scripts/lib/snap-keyring/utils/isBlockedUrl.test.ts
Builds ready [e9981a2]
UI Startup Metrics (1173 ± 58 ms)
Bundle size diffs
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ramp changes LGTM
Description
This PR resolves conflicting types between jest and mocha that were causing issues with the type of "it" in unit tests which were masking type errors. It also fixes type issues that were masked by previously disregarding type errors.
In particular, this PR creates an isolated TypeScript configuration for the e2e tests where they get their own type checking context. Since mocha is only needed in e2e tests, Mocha types will not be considered for files outside of that folder.
Related issues
Fixes:
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist