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

[Tech debt] Fix Jest unit tests to run on React 16 #7237

Merged
merged 5 commits into from
Oct 2, 2023

Conversation

1Copenut
Copy link
Contributor

Summary

PR provides script commands to run .ts and .tsx tests against React [16] with no errors. This PR will be combined with a few others to split our Buildkite test job to run in parallel.

QA

Remove or strikethrough items that do not apply to your PR.

General checklist

Best way to QA will be to run the following commands after pulling the branch and yarn to ensure latest dependencies:

  • yarn test-unit --testMatch=non-react
  • yarn test-unit --react-version=17 --testMatch=react
  • yarn test-unit --react-version=16 --testMatch=react
  • yarn test-unit --testMatch=react
  • yarn test-unit for a final no-regressions check

@cee-chen
Copy link
Member

Fantastic work Trevor! Splitting up the PRs made this much quicker to review/reason about, so I really appreciate that. I have one very minor cleanup request and this PR is good to go.

@1Copenut 1Copenut requested a review from cee-chen October 2, 2023 15:24
Copy link
Member

@cee-chen cee-chen left a comment

Choose a reason for hiding this comment

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

Delightful. Merge away!

@kibanamachine
Copy link

Preview staging links for this PR:

@elasticmachine
Copy link
Collaborator

💚 Build Succeeded

History

cc @1Copenut

@1Copenut 1Copenut merged commit 54ac91f into elastic:main Oct 2, 2023
7 checks passed
@1Copenut 1Copenut deleted the feature/jest-react-16-tests branch October 2, 2023 15:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants