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

[canvas] migrate tests away from karma #73121

Merged
merged 4 commits into from
Jul 27, 2020

Conversation

spalger
Copy link
Contributor

@spalger spalger commented Jul 23, 2020

To get closer to being able to stop using Karma we need to move canvas tests that are using Karma to use Jest instead.

Most tests moved over pretty easy, a couple places made sense to switch to TS quickly.

@spalger spalger added Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas v8.0.0 release_note:skip Skip the PR/issue when compiling release notes v7.10.0 labels Jul 23, 2020
]);
expect(newState.resolvedArgs['element-1']).toMatchInlineSnapshot(`
Object {
"0": Object {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is the return value produced by resolvedArgsReducer() which used to work by the check that .to.eql() ran. Jest assertions are a bit more picky (in a good way, the return value shouldn't eql an array) but I just wanted to raise awareness a little... this is weirdness

@spalger spalger marked this pull request as ready for review July 23, 2020 19:15
@spalger spalger requested a review from a team as a code owner July 23, 2020 19:15
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-canvas (Team:Canvas)

@joshdover joshdover mentioned this pull request Jul 23, 2020
54 tasks
@clintandrewhall
Copy link
Contributor

Thanks for doing this. Checked the storyshots and tests... all looks good! FYI: the removed storyshot is due to a PR I merged that prevents Redux-based Storybook stories from being 'shotted.

@spalger
Copy link
Contributor Author

spalger commented Jul 27, 2020

@elasticmachine merge upstream

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Build metrics

✅ unchanged

History

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

@spalger spalger merged commit d66cc35 into elastic:master Jul 27, 2020
@spalger spalger deleted the migrate-off-karma/canvas branch July 27, 2020 17:43
spalger added a commit to spalger/kibana that referenced this pull request Jul 27, 2020
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
spalger added a commit that referenced this pull request Jul 27, 2020
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release_note:skip Skip the PR/issue when compiling release notes Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas v7.10.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants