Skip to content

Remove dependency of tests on strict SyntaxKind values#83440

Merged
afharo merged 1 commit intoelastic:masterfrom
afharo:telemetry-tools/tests/dynamic-SyntaxKind
Nov 16, 2020
Merged

Remove dependency of tests on strict SyntaxKind values#83440
afharo merged 1 commit intoelastic:masterfrom
afharo:telemetry-tools/tests/dynamic-SyntaxKind

Conversation

@afharo
Copy link
Copy Markdown
Member

@afharo afharo commented Nov 16, 2020

Summary

Tests in @kbn/telemetry-tools rely on strict SyntaxKind values. So, for every update in the TS libraries, they might change, leading to the snapshots in the tests to need a refresh.

This PR changes the assertion so it no longer relies on strict values and updates as TS updates them.

Related to #83397

Checklist

Delete any items that are not applicable to this PR.

For maintainers

@afharo afharo requested a review from a team as a code owner November 16, 2020 15:59
@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/kibana-telemetry (Team:KibanaTelemetry)

@ghost
Copy link
Copy Markdown

ghost commented Nov 16, 2020

💚 Build Succeeded

Copy link
Copy Markdown
Contributor

@TinaHeiligers TinaHeiligers left a comment

Choose a reason for hiding this comment

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

The changes seem innocent enough. LGTM once the tests to green.

@kibanamachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

Metrics [docs]

✅ unchanged

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

@afharo afharo merged commit 90729c6 into elastic:master Nov 16, 2020
@afharo afharo deleted the telemetry-tools/tests/dynamic-SyntaxKind branch November 16, 2020 17:37
phillipb added a commit to phillipb/kibana that referenced this pull request Nov 19, 2020
…ode-details

* 'master' of github.com:elastic/kibana:
  Remove dependency of tests on strict SyntaxKind values (elastic#83440)
  [SecuritySolution] override timerange for prebuilt templates (elastic#82468)
  [Enterprise Search] Added a shouldShowActiveForSubroutes option (elastic#83338)
  [Lens] Make the dimension flyout panel stay close on outside click (elastic#83059)
  [Security Solution] Gracefully handle errors in detection rules install (elastic#83306)
  Fix advanced settings category sorting (elastic#83394)
@lukeelmers lukeelmers added the Team:Core Platform Core services: plugins, logging, config, saved objects, http, ES client, i18n, etc t// label Oct 1, 2021
@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/kibana-core (Team:Core)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Feature:Telemetry NeededFor:Core release_note:skip Skip the PR/issue when compiling release notes Team:Core Platform Core services: plugins, logging, config, saved objects, http, ES client, i18n, etc t// v7.11.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants