Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: kulshekhar/ts-jest
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v29.1.1
Choose a base ref
...
head repository: kulshekhar/ts-jest
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v29.1.3
Choose a head ref

Commits on Jul 11, 2023

  1. build(deps): bump semver from 5.7.1 to 5.7.2 in /website (#4182)

    Bumps [semver](https://github.com/npm/node-semver) from 5.7.1 to 5.7.2.
    - [Release notes](https://github.com/npm/node-semver/releases)
    - [Changelog](https://github.com/npm/node-semver/blob/v5.7.2/CHANGELOG.md)
    - [Commits](npm/node-semver@v5.7.1...v5.7.2)
    
    ---
    updated-dependencies:
    - dependency-name: semver
      dependency-type: indirect
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Jul 11, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    94c5cea View commit details
  2. build(deps): bump tough-cookie in /examples/react-app (#4181)

    Bumps [tough-cookie](https://github.com/salesforce/tough-cookie) from 4.1.2 to 4.1.3.
    - [Release notes](https://github.com/salesforce/tough-cookie/releases)
    - [Changelog](https://github.com/salesforce/tough-cookie/blob/master/CHANGELOG.md)
    - [Commits](salesforce/tough-cookie@v4.1.2...v4.1.3)
    
    ---
    updated-dependencies:
    - dependency-name: tough-cookie
      dependency-type: indirect
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Jul 11, 2023
    Copy the full SHA
    a4c78f8 View commit details
  3. build(deps): Update dependency json-schema-to-typescript to ^13.0.2 (#…

    …4175)
    
    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Jul 11, 2023
    Copy the full SHA
    eeb787d View commit details

Commits on Jul 26, 2023

  1. docs: fix link

    Julien Bouquillon authored Jul 26, 2023
    Copy the full SHA
    5efcd84 View commit details

Commits on Aug 19, 2023

  1. Copy the full SHA
    918312b View commit details
  2. Merge pull request #4196 from ologbonowiwi/fix/4028/use-project-confi…

    …g-instead-deprecated-type
    
    fix: use `Config.ProjectConfig`
    kulshekhar authored Aug 19, 2023
    Copy the full SHA
    4d50a65 View commit details
  3. Update installation.md

    Julien Bouquillon authored Aug 19, 2023
    Copy the full SHA
    8ba74b5 View commit details

Commits on Aug 20, 2023

  1. Merge pull request #4192 from revolunet/patch-1

    docs: fix link
    kulshekhar authored Aug 20, 2023
    Copy the full SHA
    9f1439a View commit details

Commits on Nov 28, 2023

  1. build(deps-dev): bump word-wrap from 1.2.3 to 1.2.4 (#4188)

    Bumps [word-wrap](https://github.com/jonschlinkert/word-wrap) from 1.2.3 to 1.2.4.
    - [Release notes](https://github.com/jonschlinkert/word-wrap/releases)
    - [Commits](jonschlinkert/word-wrap@1.2.3...1.2.4)
    
    ---
    updated-dependencies:
    - dependency-name: word-wrap
      dependency-type: indirect
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Nov 28, 2023
    Copy the full SHA
    61a94e3 View commit details
  2. build(deps): bump tough-cookie from 4.1.2 to 4.1.3 in /e2e/transform-…

    …tsx (#4180)
    
    Bumps [tough-cookie](https://github.com/salesforce/tough-cookie) from 4.1.2 to 4.1.3.
    - [Release notes](https://github.com/salesforce/tough-cookie/releases)
    - [Changelog](https://github.com/salesforce/tough-cookie/blob/master/CHANGELOG.md)
    - [Commits](salesforce/tough-cookie@v4.1.2...v4.1.3)
    
    ---
    updated-dependencies:
    - dependency-name: tough-cookie
      dependency-type: indirect
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Nov 28, 2023
    Copy the full SHA
    8488bb1 View commit details
  3. build(deps): bump semver from 6.3.0 to 6.3.1 in /e2e/transform-js (#4183

    )
    
    Bumps [semver](https://github.com/npm/node-semver) from 6.3.0 to 6.3.1.
    - [Release notes](https://github.com/npm/node-semver/releases)
    - [Changelog](https://github.com/npm/node-semver/blob/v6.3.1/CHANGELOG.md)
    - [Commits](npm/node-semver@v6.3.0...v6.3.1)
    
    ---
    updated-dependencies:
    - dependency-name: semver
      dependency-type: indirect
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Nov 28, 2023
    Copy the full SHA
    4767373 View commit details
  4. build(deps): bump word-wrap from 1.2.3 to 1.2.4 in /examples/react-app (

    #4189)
    
    Bumps [word-wrap](https://github.com/jonschlinkert/word-wrap) from 1.2.3 to 1.2.4.
    - [Release notes](https://github.com/jonschlinkert/word-wrap/releases)
    - [Commits](jonschlinkert/word-wrap@1.2.3...1.2.4)
    
    ---
    updated-dependencies:
    - dependency-name: word-wrap
      dependency-type: indirect
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Nov 28, 2023
    Copy the full SHA
    d9f14f6 View commit details
  5. build(deps-dev): bump word-wrap in /e2e/transform-tsx (#4190)

    Bumps [word-wrap](https://github.com/jonschlinkert/word-wrap) from 1.2.3 to 1.2.4.
    - [Release notes](https://github.com/jonschlinkert/word-wrap/releases)
    - [Commits](jonschlinkert/word-wrap@1.2.3...1.2.4)
    
    ---
    updated-dependencies:
    - dependency-name: word-wrap
      dependency-type: indirect
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Nov 28, 2023
    Copy the full SHA
    e3a8270 View commit details
  6. ci: drop Node 14 & 19 and add 20

    chentsulin authored and ahnpnl committed Nov 28, 2023
    Copy the full SHA
    c27003c View commit details
  7. fix(e2e): upgrade caniuse-lite

    e2e failed due to this dep is outdated
    Anh Pham authored and ahnpnl committed Nov 28, 2023
    Copy the full SHA
    18f9f19 View commit details
  8. build(deps): Update babel monorepo to ^7.23.3

    renovate[bot] authored and ahnpnl committed Nov 28, 2023
    Copy the full SHA
    7c8bf03 View commit details
  9. build(deps): Update actions/checkout digest to f43a0e5

    renovate[bot] authored and ahnpnl committed Nov 28, 2023
    Copy the full SHA
    9e4497f View commit details
  10. build(deps): Update dependency @formatjs/ts-transformer to ^3.13.9

    renovate[bot] authored and ahnpnl committed Nov 28, 2023
    Copy the full SHA
    622539d View commit details
  11. build(deps): Update actions/setup-node digest to 1a4442c

    renovate[bot] authored and ahnpnl committed Nov 28, 2023
    Copy the full SHA
    e31d953 View commit details

Commits on Jan 19, 2024

  1. fix: correct error handling in processAsync

    SimenB authored and ahnpnl committed Jan 19, 2024
    Copy the full SHA
    e7be4bf View commit details
  2. build(deps): Update dependency docusaurus-remark-plugin-tab-blocks to…

    … ^1.3.1
    renovate[bot] authored and ahnpnl committed Jan 19, 2024
    Copy the full SHA
    41b8460 View commit details
  3. build(deps): Update babel monorepo

    renovate[bot] authored and ahnpnl committed Jan 19, 2024
    Copy the full SHA
    f41cc3e View commit details
  4. build(deps): Update dependency node-fetch to ^3.3.2

    renovate[bot] authored and ahnpnl committed Jan 19, 2024
    Copy the full SHA
    0861a66 View commit details
  5. test(e2e): remove onNodeVersions function

    Since we support only Node 16+, we can safely remove this function
    Anh Pham authored and ahnpnl committed Jan 19, 2024
    Copy the full SHA
    2d16f4a View commit details

Commits on Jan 22, 2024

  1. fix: calculated cache key based on supportsStaticESM

    hnrqer authored and ahnpnl committed Jan 22, 2024
    Copy the full SHA
    a5d6f2d View commit details
  2. build: reference transform options via jest TransformOptions type

    Anh Pham authored and ahnpnl committed Jan 22, 2024
    Copy the full SHA
    19778bd View commit details
  3. chore(release): 29.1.2

    Anh Pham authored and ahnpnl committed Jan 22, 2024
    Copy the full SHA
    70d48be View commit details

Commits on Feb 19, 2024

  1. build(deps): Update dependency @formatjs/ts-transformer to ^3.13.12

    renovate[bot] authored and ahnpnl committed Feb 19, 2024
    Copy the full SHA
    306c3f2 View commit details
  2. build(deps): Update dependency semver to v7.6.0

    renovate[bot] authored and ahnpnl committed Feb 19, 2024
    Copy the full SHA
    42a79d4 View commit details
  3. build(deps): Update babel monorepo to ^7.23.9

    renovate[bot] authored and ahnpnl committed Feb 19, 2024
    Copy the full SHA
    d17cd53 View commit details

Commits on Mar 15, 2024

  1. build(deps): bump follow-redirects from 1.14.9 to 1.15.6 in /website

    Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.14.9 to 1.15.6.
    - [Release notes](https://github.com/follow-redirects/follow-redirects/releases)
    - [Commits](follow-redirects/follow-redirects@v1.14.9...v1.15.6)
    
    ---
    updated-dependencies:
    - dependency-name: follow-redirects
      dependency-type: indirect
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored and ahnpnl committed Mar 15, 2024
    Copy the full SHA
    609dd19 View commit details
  2. build(deps): Update dependency ts-jest to ^29.1.2

    renovate[bot] authored and ahnpnl committed Mar 15, 2024
    Copy the full SHA
    eeb19fe View commit details
  3. build(deps): bump follow-redirects in /examples/react-app

    Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.15.0 to 1.15.6.
    - [Release notes](https://github.com/follow-redirects/follow-redirects/releases)
    - [Commits](follow-redirects/follow-redirects@v1.15.0...v1.15.6)
    
    ---
    updated-dependencies:
    - dependency-name: follow-redirects
      dependency-type: indirect
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored and ahnpnl committed Mar 15, 2024
    Copy the full SHA
    edef16e View commit details

Commits on May 19, 2024

  1. build(deps): bump ejs from 3.1.8 to 3.1.10 in /examples/react-app

    Bumps [ejs](https://github.com/mde/ejs) from 3.1.8 to 3.1.10.
    - [Release notes](https://github.com/mde/ejs/releases)
    - [Commits](mde/ejs@v3.1.8...v3.1.10)
    
    ---
    updated-dependencies:
    - dependency-name: ejs
      dependency-type: indirect
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored and ahnpnl committed May 19, 2024
    Copy the full SHA
    9714788 View commit details
  2. build(deps): bump ejs from 3.1.7 to 3.1.10 in /website

    Bumps [ejs](https://github.com/mde/ejs) from 3.1.7 to 3.1.10.
    - [Release notes](https://github.com/mde/ejs/releases)
    - [Commits](mde/ejs@v3.1.7...v3.1.10)
    
    ---
    updated-dependencies:
    - dependency-name: ejs
      dependency-type: indirect
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored and ahnpnl committed May 19, 2024
    Copy the full SHA
    f324acd View commit details
  3. build(deps): bump express from 4.18.1 to 4.19.2 in /examples/react-app

    Bumps [express](https://github.com/expressjs/express) from 4.18.1 to 4.19.2.
    - [Release notes](https://github.com/expressjs/express/releases)
    - [Changelog](https://github.com/expressjs/express/blob/master/History.md)
    - [Commits](expressjs/express@4.18.1...4.19.2)
    
    ---
    updated-dependencies:
    - dependency-name: express
      dependency-type: indirect
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored and ahnpnl committed May 19, 2024
    Copy the full SHA
    0785348 View commit details
  4. perf: remove ts resolved module cache file

    jsaguet authored and ahnpnl committed May 19, 2024
    Copy the full SHA
    4c88da5 View commit details
  5. fix: add @jest/transform as an optional peer dependency

    G-Rath authored and ahnpnl committed May 19, 2024
    Copy the full SHA
    0ba7f86 View commit details
  6. build(deps): bump express from 4.17.3 to 4.19.2 in /website

    Bumps [express](https://github.com/expressjs/express) from 4.17.3 to 4.19.2.
    - [Release notes](https://github.com/expressjs/express/releases)
    - [Changelog](https://github.com/expressjs/express/blob/master/History.md)
    - [Commits](expressjs/express@4.17.3...4.19.2)
    
    ---
    updated-dependencies:
    - dependency-name: express
      dependency-type: indirect
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored and ahnpnl committed May 19, 2024
    Copy the full SHA
    445c7d5 View commit details
  7. build(deps): bump webpack-dev-middleware from 5.3.1 to 5.3.4 in /website

    Bumps [webpack-dev-middleware](https://github.com/webpack/webpack-dev-middleware) from 5.3.1 to 5.3.4.
    - [Release notes](https://github.com/webpack/webpack-dev-middleware/releases)
    - [Changelog](https://github.com/webpack/webpack-dev-middleware/blob/v5.3.4/CHANGELOG.md)
    - [Commits](webpack/webpack-dev-middleware@v5.3.1...v5.3.4)
    
    ---
    updated-dependencies:
    - dependency-name: webpack-dev-middleware
      dependency-type: indirect
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored and ahnpnl committed May 19, 2024
    Copy the full SHA
    f3f4663 View commit details
  8. build(deps): bump webpack-dev-middleware in /examples/react-app

    Bumps [webpack-dev-middleware](https://github.com/webpack/webpack-dev-middleware) from 5.3.1 to 5.3.4.
    - [Release notes](https://github.com/webpack/webpack-dev-middleware/releases)
    - [Changelog](https://github.com/webpack/webpack-dev-middleware/blob/v5.3.4/CHANGELOG.md)
    - [Commits](webpack/webpack-dev-middleware@v5.3.1...v5.3.4)
    
    ---
    updated-dependencies:
    - dependency-name: webpack-dev-middleware
      dependency-type: indirect
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored and ahnpnl committed May 19, 2024
    Copy the full SHA
    ea213f0 View commit details
  9. build(deps): Update dependency ts-node to ^10.9.2

    renovate[bot] authored and ahnpnl committed May 19, 2024
    Copy the full SHA
    b5b396c View commit details
  10. build(deps): Update dependency typescript-transform-paths to ^3.4.7

    renovate[bot] authored and ahnpnl committed May 19, 2024
    Copy the full SHA
    d6b9ded View commit details
  11. build(deps): Update dependency @formatjs/ts-transformer to ^3.13.14

    renovate[bot] authored and ahnpnl committed May 19, 2024
    Copy the full SHA
    cfff800 View commit details
  12. build(deps): Update dependency conventional-changelog-cli to v2.2.2

    renovate[bot] authored and ahnpnl committed May 19, 2024
    Copy the full SHA
    de8bdac View commit details
  13. build(deps): Update dependency semver to v7.6.2

    renovate[bot] authored and ahnpnl committed May 19, 2024
    Copy the full SHA
    1a6c276 View commit details
  14. build(deps): Update docusaurus monorepo to ^2.4.3

    renovate[bot] authored and ahnpnl committed May 19, 2024
    Copy the full SHA
    d4edc09 View commit details

Commits on May 20, 2024

  1. build(deps): Update @types packages

    renovate[bot] authored and ahnpnl committed May 20, 2024
    Copy the full SHA
    f04fbfe View commit details
  2. build(deps): Update JamesIves/github-pages-deploy-action action to v4…

    ….6.1
    renovate[bot] authored and ahnpnl committed May 20, 2024
    Copy the full SHA
    1de11e2 View commit details

Commits on May 21, 2024

  1. build(deps): Update Jest packages

    renovate[bot] authored and ahnpnl committed May 21, 2024
    Copy the full SHA
    f371881 View commit details
Showing with 5,597 additions and 5,631 deletions.
  1. +4 −4 .github/workflows/ci.yml
  2. +3 −3 .github/workflows/doc-generator.yml
  3. +2 −2 .github/workflows/prepare-cache.yml
  4. +3 −3 .github/workflows/release-and-publish.yml
  5. +3 −3 .github/workflows/test.yml
  6. +26 −0 CHANGELOG.md
  7. +4 −4 e2e/__tests__/__snapshots__/native-esm-js.test.ts.snap
  8. +7 −10 e2e/__tests__/extend-ts-jest.test.ts
  9. +33 −39 e2e/__tests__/native-esm-js.test.ts
  10. +8 −11 e2e/__tests__/native-esm-ts.test.ts
  11. +7 −7 e2e/ast-transformers/hoist-jest/package-lock.json
  12. +1 −1 e2e/ast-transformers/hoist-jest/package.json
  13. +133 −365 e2e/ast-transformers/transformer-options/package-lock.json
  14. +3 −3 e2e/ast-transformers/transformer-options/package.json
  15. +7 −7 e2e/config-typing/package-lock.json
  16. +1 −1 e2e/config-typing/package.json
  17. +7 −7 e2e/custom-compiler/ttypescript/package-lock.json
  18. +1 −1 e2e/custom-compiler/ttypescript/package.json
  19. +0 −16 e2e/run-jest.ts
  20. +1,184 −1,188 e2e/transform-js/package-lock.json
  21. +1 −1 e2e/transform-js/package.json
  22. +35 −35 e2e/transform-tsx/package-lock.json
  23. +2 −2 e2e/transform-tsx/package.json
  24. +1,234 −1,243 examples/js-with-babel/package-lock.json
  25. +3 −3 examples/js-with-babel/package.json
  26. +16 −16 examples/js-with-ts/package-lock.json
  27. +1 −1 examples/js-with-ts/package.json
  28. +16 −16 examples/monorepo-app/package-lock.json
  29. +1 −1 examples/monorepo-app/package.json
  30. +98 −98 examples/react-app/package-lock.json
  31. +16 −16 examples/ts-only/package-lock.json
  32. +1 −1 examples/ts-only/package.json
  33. +16 −16 examples/type-module/package-lock.json
  34. +1 −1 examples/type-module/package.json
  35. +1,528 −1,394 package-lock.json
  36. +22 −18 package.json
  37. +5 −6 src/legacy/config/config-set.ts
  38. +27 −73 src/legacy/ts-jest-transformer.spec.ts
  39. +40 −64 src/legacy/ts-jest-transformer.ts
  40. +5 −2 src/types.ts
  41. +1,083 −940 website/package-lock.json
  42. +8 −8 website/package.json
  43. +1 −1 website/versioned_docs/version-29.0/getting-started/installation.md
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -30,8 +30,8 @@ jobs:
needs: prepare-npm-cache-ubuntu

steps:
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3
- uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
- uses: actions/setup-node@1a4442cacd436585916779262731d5b162bc6ec7 # v3
with:
node-version: lts/*
cache: npm
@@ -47,8 +47,8 @@ jobs:
runs-on: ubuntu-latest
needs: prepare-npm-cache-ubuntu
steps:
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3
- uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
- uses: actions/setup-node@1a4442cacd436585916779262731d5b162bc6ec7 # v3
with:
node-version: lts/*
cache: npm
6 changes: 3 additions & 3 deletions .github/workflows/doc-generator.yml
Original file line number Diff line number Diff line change
@@ -21,7 +21,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3 # If you're using actions/checkout@v2 you must set persist-credentials to false in most cases for the deployment to work correctly.
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3 # If you're using actions/checkout@v2 you must set persist-credentials to false in most cases for the deployment to work correctly.
with:
persist-credentials: false

@@ -38,7 +38,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3 # If you're using actions/checkout@v2 you must set persist-credentials to false in most cases for the deployment to work correctly.
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3 # If you're using actions/checkout@v2 you must set persist-credentials to false in most cases for the deployment to work correctly.
with:
persist-credentials: false

@@ -49,7 +49,7 @@ jobs:
npm run build
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@22a6ee251d6f13c6ab1ecb200d974f1a6feb1b8d # v4.4.2
uses: JamesIves/github-pages-deploy-action@5c6e9e9f3672ce8fd37b9856193d2a537941e66c # v4.6.1
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages # The branch the action should deploy to.
4 changes: 2 additions & 2 deletions .github/workflows/prepare-cache.yml
Original file line number Diff line number Diff line change
@@ -16,8 +16,8 @@ jobs:
runs-on: ${{ inputs.os }}

steps:
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3
- uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
- uses: actions/setup-node@1a4442cacd436585916779262731d5b162bc6ec7 # v3
with:
node-version: lts/*
cache: npm
6 changes: 3 additions & 3 deletions .github/workflows/release-and-publish.yml
Original file line number Diff line number Diff line change
@@ -48,7 +48,7 @@ jobs:
# it
- name: Checkout code
# https://github.com/marketplace/actions/checkout
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3

# Runs a single command using the runners shell
- name: Create release for tag
@@ -66,9 +66,9 @@ jobs:

steps:
# https://github.com/marketplace/actions/checkout
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
# https://github.com/marketplace/actions/setup-node-js-environment
- uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0
- uses: actions/setup-node@1a4442cacd436585916779262731d5b162bc6ec7 # v3.8.2
with:
node-version: 16
registry-url: https://registry.npmjs.org/
6 changes: 3 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -18,14 +18,14 @@ jobs:
strategy:
fail-fast: false
matrix:
node-version: [14.x, 16.x, 18.x]
node-version: [16.x, 18.x, 20.x]
name: Node v${{ matrix.node-version }} on ${{ inputs.os }}
runs-on: ${{ inputs.os }}

steps:
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3
uses: actions/setup-node@1a4442cacd436585916779262731d5b162bc6ec7 # v3
with:
node-version: ${{ matrix.node-version }}
cache: npm
26 changes: 26 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,29 @@
## [29.1.3](https://github.com/kulshekhar/ts-jest/compare/v29.1.2...v29.1.3) (2024-05-21)


### Bug Fixes

* add `@jest/transform` as an optional peer dependency ([0ba7f86](https://github.com/kulshekhar/ts-jest/commit/0ba7f861c3e1905de5627b4e5d2a2cadad011b67))
* bring back Node 14 support ([eda56a7](https://github.com/kulshekhar/ts-jest/commit/eda56a779789d70963b7572e2914b2a3a25ac43a))


### Performance Improvements

* remove ts resolved module cache file ([4c88da5](https://github.com/kulshekhar/ts-jest/commit/4c88da58991b000aa90ea489acfa6aed39b36120))



## [29.1.2](https://github.com/kulshekhar/ts-jest/compare/v29.1.1...v29.1.2) (2024-01-22)


### Bug Fixes

* calculated cache key based on `supportsStaticESM` ([a5d6f2d](https://github.com/kulshekhar/ts-jest/commit/a5d6f2d4f4bfa1c7c217f6faf9310958797b436f))
* correct error handling in `processAsync` ([e7be4bf](https://github.com/kulshekhar/ts-jest/commit/e7be4bf6a863cd76efec28f40fdd5193b2f50bad)), closes [#4207](https://github.com/kulshekhar/ts-jest/issues/4207)
* use `Config.ProjectConfig` ([918312b](https://github.com/kulshekhar/ts-jest/commit/918312bee22a795ec6bb347f95df4c1ff0a054de)), closes [#4028](https://github.com/kulshekhar/ts-jest/issues/4028)



## [29.1.1](https://github.com/kulshekhar/ts-jest/compare/v29.1.0...v29.1.1) (2023-06-23)


8 changes: 4 additions & 4 deletions e2e/__tests__/__snapshots__/native-esm-js.test.ts.snap
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`on node >=14.15.0 runs test with native ESM and isolatedModules: false 1`] = `
exports[`runs test with native ESM and isolatedModules: false 1`] = `
Test Suites: 1 passed, 1 total
Tests: 21 passed, 21 total
Snapshots: 0 total
Time: <<REPLACED>>
Ran all test suites matching /native-esm.spec.ts/i.
`;
exports[`on node >=14.15.0 runs test with native ESM and isolatedModules: true 1`] = `
exports[`runs test with native ESM and isolatedModules: true 1`] = `
Test Suites: 1 passed, 1 total
Tests: 21 passed, 21 total
Snapshots: 0 total
Time: <<REPLACED>>
Ran all test suites matching /native-esm.spec.ts/i.
`;
exports[`on node >=14.3.0 supports top-level await and isolatedModules: false 1`] = `
exports[`supports top-level await and isolatedModules: false 1`] = `
Test Suites: 1 passed, 1 total
Tests: 1 passed, 1 total
Snapshots: 0 total
Time: <<REPLACED>>
Ran all test suites matching /native-esm-tla.spec.ts/i.
`;
exports[`on node >=14.3.0 supports top-level await and isolatedModules: true 1`] = `
exports[`supports top-level await and isolatedModules: true 1`] = `
Test Suites: 1 passed, 1 total
Tests: 1 passed, 1 total
Snapshots: 0 total
17 changes: 7 additions & 10 deletions e2e/__tests__/extend-ts-jest.test.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
import { json as runWithJson, onNodeVersions } from '../run-jest'
import { json as runWithJson } from '../run-jest'

const DIR = 'extend-ts-jest'

// Only need to test in ESM because ESM makes `this` context become `undefined`
onNodeVersions('>=14.15.0', () => {
test(`successfully runs the tests inside ${DIR}`, () => {
const { json } = runWithJson(DIR, undefined, {
nodeOptions: '--experimental-vm-modules --no-warnings',
})

expect(json.success).toBe(true)
expect(json.numTotalTestSuites).toBe(1)
test(`successfully runs the tests inside ${DIR}`, () => {
const { json } = runWithJson(DIR, undefined, {
nodeOptions: '--experimental-vm-modules --no-warnings',
})

expect(json.success).toBe(true)
expect(json.numTotalTestSuites).toBe(1)
})
72 changes: 33 additions & 39 deletions e2e/__tests__/native-esm-js.test.ts
Original file line number Diff line number Diff line change
@@ -2,58 +2,52 @@ import path from 'path'

import { wrap } from 'jest-snapshot-serializer-raw'

import runJest, { onNodeVersions } from '../run-jest'
import runJest from '../run-jest'
import { extractSummary } from '../utils'

const DIR = path.resolve(__dirname, '..', 'native-esm-js', 'non-isolated')
const ISOLATED_MODULES_DIR = path.resolve(__dirname, '..', 'native-esm-js', 'isolated')

// The versions where vm.Module exists and commonjs with "exports" is not broken
onNodeVersions('>=14.15.0', () => {
test('runs test with native ESM and isolatedModules: false', () => {
const { exitCode, stderr, stdout } = runJest(DIR, ['native-esm.spec.ts'], {
nodeOptions: '--experimental-vm-modules --no-warnings',
})
const { summary } = extractSummary(stderr)

expect(wrap(summary)).toMatchSnapshot()
expect(stdout).toBe('')
expect(exitCode).toBe(0)
test('runs test with native ESM and isolatedModules: false', () => {
const { exitCode, stderr, stdout } = runJest(DIR, ['native-esm.spec.ts'], {
nodeOptions: '--experimental-vm-modules --no-warnings',
})
const { summary } = extractSummary(stderr)

test('runs test with native ESM and isolatedModules: true', () => {
const { exitCode, stderr, stdout } = runJest(ISOLATED_MODULES_DIR, ['native-esm.spec.ts'], {
nodeOptions: '--experimental-vm-modules --no-warnings',
})
const { summary } = extractSummary(stderr)
expect(wrap(summary)).toMatchSnapshot()
expect(stdout).toBe('')
expect(exitCode).toBe(0)
})

expect(wrap(summary)).toMatchSnapshot()
expect(stdout).toBe('')
expect(exitCode).toBe(0)
test('runs test with native ESM and isolatedModules: true', () => {
const { exitCode, stderr, stdout } = runJest(ISOLATED_MODULES_DIR, ['native-esm.spec.ts'], {
nodeOptions: '--experimental-vm-modules --no-warnings',
})
const { summary } = extractSummary(stderr)

expect(wrap(summary)).toMatchSnapshot()
expect(stdout).toBe('')
expect(exitCode).toBe(0)
})

// The versions where Top-Level Await is supported
onNodeVersions('>=14.3.0', () => {
test('supports top-level await and isolatedModules: false', () => {
const { exitCode, stderr, stdout } = runJest(DIR, ['native-esm-tla.spec.ts'], {
nodeOptions: '--experimental-vm-modules --no-warnings',
})
const { summary } = extractSummary(stderr)

expect(wrap(summary)).toMatchSnapshot()
expect(stdout).toBe('')
expect(exitCode).toBe(0)
test('supports top-level await and isolatedModules: false', () => {
const { exitCode, stderr, stdout } = runJest(DIR, ['native-esm-tla.spec.ts'], {
nodeOptions: '--experimental-vm-modules --no-warnings',
})
const { summary } = extractSummary(stderr)

test('supports top-level await and isolatedModules: true', () => {
const { exitCode, stderr, stdout } = runJest(ISOLATED_MODULES_DIR, ['native-esm-tla.spec.ts'], {
nodeOptions: '--experimental-vm-modules --no-warnings',
})
const { summary } = extractSummary(stderr)
expect(wrap(summary)).toMatchSnapshot()
expect(stdout).toBe('')
expect(exitCode).toBe(0)
})

expect(wrap(summary)).toMatchSnapshot()
expect(stdout).toBe('')
expect(exitCode).toBe(0)
test('supports top-level await and isolatedModules: true', () => {
const { exitCode, stderr, stdout } = runJest(ISOLATED_MODULES_DIR, ['native-esm-tla.spec.ts'], {
nodeOptions: '--experimental-vm-modules --no-warnings',
})
const { summary } = extractSummary(stderr)

expect(wrap(summary)).toMatchSnapshot()
expect(stdout).toBe('')
expect(exitCode).toBe(0)
})
19 changes: 8 additions & 11 deletions e2e/__tests__/native-esm-ts.test.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
import { onNodeVersions, json as runWithJson } from '../run-jest'
import { json as runWithJson } from '../run-jest'

// The versions where vm.Module exists and commonjs with "exports" is not broken
onNodeVersions('>=14.15.0', () => {
test('runs TS test with native ESM', () => {
const { exitCode, json } = runWithJson('native-esm-ts', [], {
nodeOptions: '--experimental-vm-modules --no-warnings',
})

expect(exitCode).toBe(0)
expect(json.numTotalTests).toBe(4)
expect(json.numPassedTests).toBe(4)
test('runs TS test with native ESM', () => {
const { exitCode, json } = runWithJson('native-esm-ts', [], {
nodeOptions: '--experimental-vm-modules --no-warnings',
})

expect(exitCode).toBe(0)
expect(json.numTotalTests).toBe(4)
expect(json.numPassedTests).toBe(4)
})
14 changes: 7 additions & 7 deletions e2e/ast-transformers/hoist-jest/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion e2e/ast-transformers/hoist-jest/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"dependencies": {
"react": "^18.2.0"
"react": "^18.3.1"
},
"jest": {
"automock": true,
Loading