ionic-team / stencil

A toolchain for building scalable, enterprise-ready component systems on top of TypeScript and Web Component standards. Stencil components can be distributed natively to React, Angular, Vue, and traditional web developers from a single, framework-agnostic codebase.
https://stenciljs.com
Other
12.43k stars 781 forks source link

support jest 27 #2918

Closed Tallyb closed 2 years ago

Tallyb commented 3 years ago

Stencil version:

 @stencil/core@2.5.2

I'm submitting a:

[ ] bug report [X] feature request [ ] support request => Please do not submit support requests here, use one of these channels: https://stencil-worldwide.herokuapp.com/ or https://forum.ionicframework.com/

Current behavior: Tests are working with jest 26. You cannot upgrade to jest 27 since you get jasmine is not defined. Setting up testRunner: 'jest-jasmine2' in the configuration to retain old jasmine does not help either and throws Cannot read property 'rootDir' of undefined.

Expected behavior: For the upcoming stencil 2.6, would it be possible to support jest 27?

Steps to reproduce: Upgrade jest and jest-cli to 27. Try running tests.

antoniosZ commented 3 years ago

I get

runJest: Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './build/cli/args' is not defined by
           "exports" in .../node_modules/jest-cli/package.json
splitinfinities commented 2 years ago

Hi Tally! We're working on this now, just wanted to let you know! When we have next steps, we'll loop you in. Thank you so much for the patience!

ionitron-bot[bot] commented 2 years ago

Thanks for the issue! This issue is being closed due to inactivity. If this is still an issue with the latest version of Stencil, please create a new issue and ensure the template is fully filled out.

Thank you for using Stencil!

rwaskiewicz commented 2 years ago

Hey ionitron-bot, we didn't mean to close this. Bad bot!

rwaskiewicz commented 2 years ago

https://github.com/ionic-team/stencil/pull/3189 includes support for Jest 27, and will be included in the next minor release of Stencil (v2.13.0)

rwaskiewicz commented 2 years ago

Hey folks, this should be fixed in v2.13.0 of Stencil, which was just released with Jest 27 support. I'm going to close this issue for now, but if this comes up again, please feel free to file a new ticket!