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

chore(tests): harmonize Jest package version to address test file matching #26320

Merged
merged 1 commit into from
Nov 18, 2022

Conversation

alicewriteswrongs
Copy link
Member

@alicewriteswrongs alicewriteswrongs commented Nov 18, 2022

This harmonizes the versions of Jest installed in Framework to address an issue reported in Stencil here:
ionic-team/stencil#3785

The issue is essentially that certain test commands, such as this one:

npx stencil test --spec --max-workers=2 src/utils/keyboard/test/

will, at present, alternate between running the tests as expected and failing. Not good!

The issue is caused by having different versions of @jest/core, on the one hand, and jest and jest-cli on the other. After updating jest and jest-cli to match the version of @jest/core (27.5.1) and the issue can no longer be reproduced.

Pull request checklist

Please check if your PR fulfills the following requirements:

  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been reviewed and added / updated if needed (for bug fixes / features)
    • Some docs updates need to be made in the ionic-docs repo, in a separate PR. See the contributing guide for details.
  • Build (npm run build) was run locally and any changes were pushed
  • Lint (npm run lint) has passed locally and any fixes were made for failures

Pull request type

Please check the type of change your PR introduces:

  • Bugfix
  • Feature
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Documentation content changes
  • Other (please describe):

What is the current behavior?

Issue URL: ionic-team/stencil#3785

What is the new behavior?

The commands reported as failing in the Stencil issue above no longer fail!

Does this introduce a breaking change?

  • Yes
  • No

Other information

@github-actions github-actions bot added the package: core @ionic/core package label Nov 18, 2022
@alicewriteswrongs alicewriteswrongs marked this pull request as ready for review November 18, 2022 16:40
@alicewriteswrongs alicewriteswrongs requested a review from a team as a code owner November 18, 2022 16:40
@sean-perkins sean-perkins changed the title fix(tests): harmonize Jest package version to address test file matching chore(tests): harmonize Jest package version to address test file matching Nov 18, 2022
Copy link
Contributor

@sean-perkins sean-perkins left a comment

Choose a reason for hiding this comment

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

Thank you so much for fixing this!

When we merge, lets make sure the commit message is chore, so it doesn't show up in the changelog for developers 👍

@alicewriteswrongs
Copy link
Member Author

no prob, always happy to help! and just updated the commit message to follow that convention.

…ching

This harmonizes the versions of Jest installed in Framework to address
an issue reported in Stencil here:
ionic-team/stencil#3785

The issue is essentially that certain test commands, such as this one:

```
npx stencil test --spec --max-workers=2 src/utils/keyboard/test/
```

will, at present, alternate between running the tests as expected and
failing. Not good!

The issue is caused by having different versions of `@jest/core`, on the
one hand, and `jest` and `jest-cli` on the other. After updating `jest`
and `jest-cli` to match the version of `@jest/core` (`27.5.1`) and the
issue can no longer be reproduced.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package: core @ionic/core package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants