Skip to content

Conversation

rwaskiewicz
Copy link
Contributor

@rwaskiewicz rwaskiewicz commented Oct 25, 2023

Issue number: #


What is the current behavior?

Ionic Framework uses Jest 27. Previously, this was due to a limitation of Stencil. As of Stencil v4.7.0, this limitation no longer exists & the Framework can upgrade to the latest version of Jest.

What is the new behavior?

There was a top level dependency on @jest/core that I could not find to be used anywhere. This dependency is included in jest by default, and has been removed as a top level/package.json dependency.

Otherwise, all jest packages have been upgraded to jest v29. This is two major version bumps and a switch to the jest-circus runtime (instead of jest-jasmine2).

Does this introduce a breaking change?

  • Yes
  • No

Other information

There is some inherent risk of something breaking when someone like me who doesn't work on this project day-to-day bumps packages. I did this as a part of testing Jest 29 when implementing its support in Stencil and thought "Well, why not?". Feel free to reject this PR if you feel it's not worth the risk/effort at the moment.

@github-actions github-actions bot added the package: core @ionic/core package label Oct 25, 2023
@rwaskiewicz rwaskiewicz force-pushed the rwaskiewicz/add-jest-29-support branch 2 times, most recently from dfaf30c to dbfbb0e Compare October 30, 2023 15:25
remove the top level dependency on `@jest/core`. this package is not
directly used by the ionic framework. it is also brought into the
project indirectly through existing (needed dependencies) `jest` and
`jest-cli`.
this commit bumps the existing jest dependencies to v28 to begin to
modernize our testing infrasturcture.
this commit bumps the existing jest dependencies to v29 to begin to
modernize our testing infrasturcture.
@rwaskiewicz rwaskiewicz force-pushed the rwaskiewicz/add-jest-29-support branch from dbfbb0e to d2a3d4a Compare November 2, 2023 12:11
@rwaskiewicz rwaskiewicz marked this pull request as ready for review November 2, 2023 12:35
Copy link
Contributor

@liamdebeasi liamdebeasi left a comment

Choose a reason for hiding this comment

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

I'm fine with this change. Our Jest tests currently pass, and the risk for Ionic developers seem pretty minimal since this is test-related.

Thanks for the PR!

@rwaskiewicz rwaskiewicz added this pull request to the merge queue Nov 9, 2023
Merged via the queue into main with commit d69ad43 Nov 9, 2023
@rwaskiewicz rwaskiewicz deleted the rwaskiewicz/add-jest-29-support branch November 9, 2023 21:42
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.

2 participants