-
Notifications
You must be signed in to change notification settings - Fork 162
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: Tolerate other analytics events in flashbar analytics tests #2688
Conversation
@@ -20,22 +19,14 @@ let useVisualRefresh = false; | |||
jest.mock('../../../lib/components/internal/hooks/use-visual-mode', () => { | |||
const originalVisualModeModule = jest.requireActual('../../../lib/components/internal/hooks/use-visual-mode'); | |||
return { | |||
__esModule: true, |
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.
Removing unused hack
@@ -450,155 +441,3 @@ describe('Flashbar component', () => { | |||
testFlashDismissal({ stackItems: false }); | |||
}); | |||
}); | |||
|
|||
describe('Analytics', () => { |
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.
This is a separate top-level describe block, which naturally suggests it should be a separate test file in the first place
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2688 +/- ##
========================================
Coverage 95.85% 95.85%
========================================
Files 744 744
Lines 20581 20581
Branches 6644 7015 +371
========================================
Hits 19727 19727
Misses 846 846
Partials 8 8 ☔ View full report in Codecov by Sentry. |
Description
Related links, issue #, if available: n/a
How has this been tested?
Review checklist
The following items are to be evaluated by the author(s) and the reviewer(s).
Correctness
CONTRIBUTING.md
.CONTRIBUTING.md
.Security
checkSafeUrl
function.Testing
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.