Skip to content
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

[Discover] Migrate last karma tests to jest #72649

Merged

Conversation

VladLasitsa
Copy link
Contributor

Summary

Migrated last discover karma tests to jest

Checklist

Delete any items that are not applicable to this PR.

For maintainers

@VladLasitsa VladLasitsa requested a review from kertal July 21, 2020 14:13
@apmmachine
Copy link
Contributor

💚 Build Succeeded

Pipeline View Test View Changes Artifacts preview

Expand to view the summary

Build stats

  • Build Cause: [Pull request #72649 opened]

  • Start Time: 2020-07-21T14:13:13.925+0000

  • Duration: 4 min 13 sec

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Build metrics

✅ unchanged

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@VladLasitsa VladLasitsa marked this pull request as ready for review July 22, 2020 12:48
@VladLasitsa VladLasitsa requested a review from a team July 22, 2020 12:48
@VladLasitsa VladLasitsa self-assigned this Jul 22, 2020
@VladLasitsa VladLasitsa added Feature:NP Migration release_note:skip Skip the PR/issue when compiling release notes Team:Visualizations Visualization editors, elastic-charts and infrastructure v8.0.0 labels Jul 22, 2020
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-app (Team:KibanaApp)

return $(this).slice(index);
});
angular.element.prototype.filter = jest.fn(function (condition) {
return $(this).filter(condition);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh... my eyes =) But I also don't know better solution to do it without loading jQuery for JEST

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@alexwizp for your eyes: jQuery-mock-hidding-👓

angular.mock.inject(function ($rootScope, Private, $timeout) {
$parentScope = $rootScope;
timeout = $timeout;
$parentScope.indexPattern = Private(FixturesStubbedLogstashIndexPatternProvider);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Private(FixturesStubbedLogstashIndexPatternProvider) -> FixturesStubbedLogstashIndexPatternProvider()

@kertal kertal added the v7.10.0 label Jul 22, 2020
Copy link
Member

@kertal kertal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code LGTM, thanks a lot, may the Karma you removed here add to your personal Karma 👍
just a suggestion concerning the PR title, commit, I'd suggest "[Discover] Migrate last karma tests to jest"

@VladLasitsa VladLasitsa changed the title Migrated last discover karma tests to jest [Discover] Migrate last karma tests to jest Jul 23, 2020
@VladLasitsa VladLasitsa merged commit cf3aa2c into elastic:master Jul 23, 2020
VladLasitsa added a commit to VladLasitsa/kibana that referenced this pull request Jul 23, 2020
gmmorris added a commit to gmmorris/kibana that referenced this pull request Jul 23, 2020
* master: (35 commits)
  Migrated karma tests to jest (elastic#72649)
  Migrate status page app to core (elastic#72017)
  Failing test: Jest Tests.src/plugins/vis_type_vega/public (elastic#71834)
  Fix Firefox TSVB flaky test with switch index patterns (elastic#72882)
  [ML] Fixing link to index management from file data visualizer (elastic#72863)
  test: 💍 add test for sub-expression variables (elastic#71644)
  fix bug (elastic#72809)
  [keystore] use get_keystore in server cli (elastic#72954)
  Show step number instead of incomplete step. (elastic#72866)
  Fix bug where user can't add an exception when "close alert" is checked (elastic#72919)
  [Monitoring] Fix issues displaying alerts (elastic#72891)
  [Ingest Manager] Add more Fleet concurrency tests elastic#71744 (elastic#72338)
  [Security Solution][Exceptions] - Update UI exceptions builder nested logic (elastic#72490)
  disable renovate masterIssue
  [ML] API integration tests for UPDATE data frame analytics endpoint (elastic#72710)
  [Uptime] Fix accessibility issue in Uptime app nav links (elastic#72926)
  [Maps] fix removing global filter from layer can cause app to start thrashing (elastic#72763)
  [Maps] fix blended layer aggregation error when using composite aggregation (elastic#72759)
  fix unexpected arguments to unload command
  Limits the upload size of lists to 9 meg size (elastic#72898)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:NP Migration release_note:skip Skip the PR/issue when compiling release notes Team:Visualizations Visualization editors, elastic-charts and infrastructure v7.10.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants