-
Notifications
You must be signed in to change notification settings - Fork 298
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
Kate / Test coverage + TS migration: Components/Elements/Media files in Trader package #8457
Kate / Test coverage + TS migration: Components/Elements/Media files in Trader package #8457
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
A production App ID was automatically generated for this PR. (log)
Click here to copy & paste above information.
|
🚨 Lighthouse report for the changes in this PR:
Lighthouse ran with https://deriv-app-git-fork-kate-deriv-kate-861mqfn8emediateststs.binary.sx/ |
packages/trader/src/App/Components/Elements/Media/__tests__/media.spec.tsx
Outdated
Show resolved
Hide resolved
Codecov Report
@@ Coverage Diff @@
## master #8457 +/- ##
===========================================
+ Coverage 0.05% 20.08% +20.02%
===========================================
Files 117 1827 +1710
Lines 3425 41459 +38034
Branches 893 8240 +7347
===========================================
+ Hits 2 8328 +8326
- Misses 3423 32271 +28848
- Partials 0 860 +860
|
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.
Rest LGTM
packages/trader/src/App/Components/Elements/Media/__tests__/media.spec.tsx
Outdated
Show resolved
Hide resolved
packages/trader/src/App/Components/Elements/Media/media-icon.tsx
Outdated
Show resolved
Hide resolved
packages/trader/src/App/Components/Elements/Media/media-item.tsx
Outdated
Show resolved
Hide resolved
packages/trader/src/App/Components/Elements/Media/media-icon.tsx
Outdated
Show resolved
Hide resolved
packages/trader/src/App/Components/Elements/Media/media-icon.tsx
Outdated
Show resolved
Hide resolved
packages/trader/src/App/Components/Elements/Media/media-heading.tsx
Outdated
Show resolved
Hide resolved
packages/trader/src/App/Components/Elements/Media/media-description.tsx
Outdated
Show resolved
Hide resolved
packages/trader/src/App/Components/Elements/Media/media-item.tsx
Outdated
Show resolved
Hide resolved
packages/trader/src/App/Components/Elements/Media/media-icon.tsx
Outdated
Show resolved
Hide resolved
packages/trader/src/App/Components/Elements/Media/media-heading.tsx
Outdated
Show resolved
Hide resolved
packages/trader/src/App/Components/Elements/Media/media-description.tsx
Outdated
Show resolved
Hide resolved
|
GitGuardian id | Secret | Commit | Filename | |
---|---|---|---|---|
- | Generic High Entropy Secret | c5b41c5 | packages/account/src/Components/currency-selector/tests/currency-selector.spec.tsx | View secret |
- | Generic High Entropy Secret | c5b41c5 | packages/account/src/Components/currency-selector/tests/currency-selector.spec.tsx | View secret |
🛠 Guidelines to remediate hardcoded secrets
- Understand the implications of revoking this secret by investigating where it is used in your code.
- Replace and store your secrets safely. Learn here the best practices.
- Revoke and rotate these secrets.
- If possible, rewrite git history. Rewriting git history is not a trivial act. You might completely break other contributing developers' workflow and you risk accidentally deleting legitimate data.
To avoid such incidents in the future consider
- following these best practices for managing and storing secrets including API keys and other credentials
- install secret detection on pre-commit to catch secret before it leaves your machine and ease remediation.
🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request.
Our GitHub checks need improvements? Share your feedbacks!
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
⏳ Generating Lighthouse report... |
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
…eriv-app into kate/861mqfn8e_media_tests_ts
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
✨ PR has been merged by Paimon the Release Bot |
…in Trader package (#8457) * refactor: ts migration and tess for media * fix: change path for import * refactor: change type for svg * chore: remove file type from imports * refactor: replace svg in test * refactor: implemented suggestion from review * fix: replace old type in svg d ts * refactor: replace react.fc * refactor: ts of index file
…in Trader package (#8457) * refactor: ts migration and tess for media * fix: change path for import * refactor: change type for svg * chore: remove file type from imports * refactor: replace svg in test * refactor: implemented suggestion from review * fix: replace old type in svg d ts * refactor: replace react.fc * refactor: ts of index file
Changes:
When you need to add unit test
When you need to add integration test
Test coverage checklist (for reviewer)
Type of change