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

feat(test): jest 27 support #3189

Merged
merged 4 commits into from
Jan 4, 2022
Merged

feat(test): jest 27 support #3189

merged 4 commits into from
Jan 4, 2022

Commits on Dec 15, 2021

  1. feat(test): jest 27 support

    this commit restores running the `npm test` command as a part of the
    root level package.json's `test.end-to-end` script (and readds it to
    CI).
    
    this commit provides support for jest 27 in stencil. this is
    accomplished by no longer pulling default options from the jest-cli
    package, which now encapsulates its contents through an `exports` field
    in its package.json file. during the course of this work, it was
    discovered the same fields/defaults were used with Jest 24, 25, & 26.
    Those options have been pulled out into a helper function to be provided
    for Jest v24 thru 27 to ensure a consistent experience. this helper will
    be removed in a future version of Stencil.
    
    the test runner for consumers is locked to jest-jasmine2 for backwards
    compatability in this commit.
    
    jest-runner exposes its default export differently in jest 27. the
    creation of a stencil test runner has been updated to handle the
    differences between jest v27 and v26 (and under).
    
    jest, jest-cli, jest-environment-node were all updated to the latest
    patch version to test with the latest and greatest versions of the
    libraries.
    rwaskiewicz committed Dec 15, 2021
    Configuration menu
    Copy the full SHA
    91e7ec1 View commit details
    Browse the repository at this point in the history
  2. update @types/jest to v27

    update minimum required version for consumers to v27
    rwaskiewicz committed Dec 15, 2021
    Configuration menu
    Copy the full SHA
    6fdada2 View commit details
    Browse the repository at this point in the history

Commits on Dec 16, 2021

  1. Configuration menu
    Copy the full SHA
    60a3920 View commit details
    Browse the repository at this point in the history

Commits on Jan 4, 2022

  1. Configuration menu
    Copy the full SHA
    4a5473e View commit details
    Browse the repository at this point in the history