-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
chore(js-ts): Convert app/components/Views/OnboardingSuccess/index.test.js to TypeScript #11397
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. |
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.
Left a comment
@@ -29,19 +34,31 @@ jest.mock('react-redux', () => ({ | |||
useSelector: jest.fn(), | |||
})); | |||
|
|||
const mockProviderConfig = { | |||
const mockProviderConfig: ProviderConfig = { |
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.
Use ProviderConfig
from app/selectors/networkController.ts
instead
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.
Remove the ProviderConfig interface defined in this file
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.
@Cal-L done
Triggering CI rerun |
Bitrise❌❌❌ Commit hash: 739508a Note
Tip
|
Quality Gate passedIssues Measures |
This PR has been automatically marked as stale because it has not had recent activity in the last 90 days. It will be closed in 7 days. Thank you for your contributions. |
This PR was closed because there has been no follow up activity in 7 days. Thank you for your contributions. |
Description
This pull request converts the file
app/components/Views/OnboardingSuccess/index.test.js
to TypeScript. The conversion involved renaming the file toindex.test.tsx
, inferring types, and resolving TypeScript errors. The old.js
file has been removed.Related Issues
N/A
Manual Testing Steps
yarn tsc
to ensure there are no TypeScript errors.yarn lint
to ensure there are no lint errors.index.test.tsx
pass successfully.Checklist
index.test.js
to TypeScript..js
file.yarn tsc
.yarn lint
.This Devin run was requested by Moritz.
If you have any feedback, you can leave comments in the PR and I'll address them in the app!