Skip to content

support jest 27 #2918

Closed
Closed

Description

@Tallyb

Stencil version:

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.

Activity

  1. antoniosZ commented on Jun 18, 2021

    @antoniosZ

    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
    
  2. splitinfinities commented on Aug 3, 2021

    @splitinfinities
    Contributor

    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!

  3. added
    ionitron: stale issue
    on Sep 2, 2021
  4. ionitron-bot commented on Sep 2, 2021

    @ionitron-bot

    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!

  5. locked and limited conversation to collaborators on Sep 2, 2021
  6. rwaskiewicz commented on Sep 3, 2021

    @rwaskiewicz
    Member

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

  7. removed
    ionitron: stale issue
    on Sep 3, 2021
  8. rwaskiewicz commented on Jan 4, 2022

    @rwaskiewicz
    Member

    #3189 includes support for Jest 27, and will be included in the next minor release of Stencil (v2.13.0)

  9. rwaskiewicz commented on Jan 24, 2022

    @rwaskiewicz
    Member

    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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions