-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
Added alerting ui mock for jest test #92604
Conversation
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.
Thanks for the PR!
Could we make the following changes:
- Rename
mock.ts
tomocks.ts
- Use factory pattern for consistency (example:
x-pack/plugins/alerts/server/mocks.ts
). - Should be able to access the start mock via something like
triggersActionsUiMock.createStart()
@shahzad31 feel free to remove the changes in |
@mikecote ended up spending an hour improving lazy loading in the app. i hope it helps. |
updated infra paths to use lazy components |
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.
LGTM
@elasticmachine merge upstream |
💚 Build SucceededMetrics [docs]Async chunks
Page load bundle
History
To update your PR or re-run it, just comment with: cc @shahzad31 |
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.
LGTM for infra 👍
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
… ilm/rollup-v2-action * 'ilm/rollup-v2-action' of github.com:elastic/kibana: [Security Solution][Case][Bug] Only add rule object for alert comments (#92977) [Security Solution][Case] Show the current connector name in case view (#93018) [Security Solution] Remove unused mock data (#92357) Adds mapping to the signals for the indicator rules that were missing (#92928) skip flaky suite (#85208) Cleanup spaces plugin (#91976) Control round and decimal places in Gauge Visualization when using aggregate functions like average (#91293) Added alerting ui mock for jest test (#92604) Remove "beta" label from URL Drilldown as it is now GA (#92859)
Summary
Needed a mock as can be seen in example PR #91469 to test jest test
so added a mock for alerting UI
Note:
Need to check if this will have any adverse effect on page load bundle size
Update
ended up improving lazy loading in alerting plugin to offset cost