-
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
FarhanNurzi/P2PS-1329/Advertisers ads are duplicating in other advertiser profile after manual refresh #9569
FarhanNurzi/P2PS-1329/Advertisers ads are duplicating in other advertiser profile after manual refresh #9569
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-farhan-nurzi-deriv-p2ps-1329-issues-w-a5c1e3.binary.sx/ |
SendbirdChat: jest.fn().mockReturnValue({}), | ||
})); | ||
|
||
jest.mock('@sendbird/chat/message', () => ({ |
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.
why are we mocking the sendbird chat here? is it causing issues?
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.
Yeah it causing issue because of Jim's PR #9378. @jim-deriv can we maybe find a solution for this? we put this in many test files.
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.
Hi @farhan-nurzi-deriv , @ameerul-deriv, If you guys think a global mock is the best way to go, please go for it, my initial view was that the global mock will create mocks for everything, even when they're not needed. But if that makes your work easier, then please do so. But bare in mind that this is the same pattern we use for @deriv/*
packages that we mock, we don't do global mocks (not saying that it's the best, but it's what we currently do, so you guys should feel free to innovate).
packages/p2p/jest.config.js
Outdated
@@ -29,4 +29,5 @@ module.exports = { | |||
'<rootDir>/coverage/lcov-report', | |||
'<rootDir>/dist', | |||
], | |||
transformIgnorePatterns: ['/node_modules/(?!@sendbird/chat).+\\.js$'], |
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.
To fix @sendbird/chat
error when running jest
e291129
to
d967bf5
Compare
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
… P2PS-1329/issues-when-refreshing-the-page
|
GitGuardian id | Secret | Commit | Filename | |
---|---|---|---|---|
- | Generic High Entropy Secret | c6bd7f1 | nx.json | 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 secret safely. Learn here the best practices.
- Revoke and rotate this secret.
- 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!
… P2PS-1329/issues-when-refreshing-the-page
4d08c20
to
c6bd7f1
Compare
… P2PS-1329/issues-when-refreshing-the-page
… P2PS-1329/issues-when-refreshing-the-page
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
Changes:
advertiser-page.jsx
instead of inapp.jsx
my-profile/payment-methods
componentScreenshots:
Please provide some screenshots of the change.