update the stencil app starter to jest 27 by upgrading jest, jest typings,
and the jest-cli. this upgrade requires the latest version of stencil,
whose minimum version is/will be updated to v2.13.0
Testing:
There are two parts to testing this change. Because we intend to release the changes in this PR at the same time Stencil v2.13.0 is released, we first have to build a pre-release of Stencil that includes support for Jest 27
cd to the Stencil repo, and build a tarball for the compiler
npm ci && npm run build && npm pack will create a tarball at the root of your Stencil repo clone with the name 'stencil-core-2.12.1.tgz'
Test the Starter
clone this repo, and check out this branch: git clone https://github.com/ionic-team/stencil-app-starter.git && cd stencil-app-starter && git checkout jest-27
npm i PATH_TO_YOUR_TARBALL
npm run build - expect the build to pass
npm t - expect tests to pass (although you'll see warnings about immutable props being mutated)
Changes:
update the stencil app starter to jest 27 by upgrading jest, jest typings, and the jest-cli. this upgrade requires the latest version of stencil, whose minimum version is/will be updated to v2.13.0
Testing:
There are two parts to testing this change. Because we intend to release the changes in this PR at the same time Stencil v2.13.0 is released, we first have to build a pre-release of Stencil that includes support for Jest 27
Build a pre-release of Stencil
main
(git branch --contains 10efeb6f74888f05a13a47d8afc00b5e83a3f3db
should return 'main'). If it doesn't, trygit pull
'ingcd
to the Stencil repo, and build a tarball for the compilernpm ci && npm run build && npm pack
will create a tarball at the root of your Stencil repo clone with the name 'stencil-core-2.12.1.tgz'Test the Starter
git clone https://github.com/ionic-team/stencil-app-starter.git && cd stencil-app-starter && git checkout jest-27
npm i PATH_TO_YOUR_TARBALL
npm run build
- expect the build to passnpm t
- expect tests to pass (although you'll see warnings about immutable props being mutated)