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

chore(deps): update dependency ts-jest to v29 #671

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Sep 25, 2022

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
ts-jest (source) 24.3.0 -> 29.2.5 age adoption passing confidence

Release Notes

kulshekhar/ts-jest (ts-jest)

v29.2.5

Compare Source

v29.2.4

Compare Source

v29.2.3

Compare Source

v29.2.2

Compare Source

v29.2.1

Compare Source

v29.2.0

Compare Source

Bug Fixes
  • fix: don't show warning message with Node16/NodeNext (99c4f49), closes #​4266
Features
  • feat(cli): allow migrating cjs presets to transform config (22fb027)
  • feat(presets): add util functions to create ESM presets (06f78ed)
  • feat(presets): add util functions to create CJS presets (f9cc3c0)
Code refactoring
  • refactor: replace lodash deps with native js implementation (40f1708)
  • refactor: use TsJestTransformerOptions type everywhere possibly (7d001be)
  • refactor(cli): use new preset util functions to initialize test config (c2b56ca)
  • refactor(presets): use create preset util functions for cjs presets (922d6d0)
  • test: switch react-app to use Vite (827c8ad)

v29.1.5

Compare Source

Bug Fixes

v29.1.4

Compare Source

Bug Fixes
Features

v29.1.3

Compare Source

Bug Fixes
  • add @jest/transform as an optional peer dependency (0ba7f86)
  • bring back Node 14 support (eda56a7)
Performance Improvements
  • remove ts resolved module cache file (4c88da5)

v29.1.2

Compare Source

Bug Fixes

v29.1.1

Compare Source

Security Fixes
  • bump semver to 7.5.3

v29.1.0

Compare Source

Features

29.0.5 (2023-01-13)

Reverts

29.0.4 (2023-01-10)

Bug Fixes

29.0.3 (2022-09-28)

Bug Fixes
Features
  • add useESM option to pathsToModuleNameMapper options (#​3792) (eabe906)

29.0.2 (2022-09-23)

Bug Fixes

29.0.2 (2022-09-22)

Bug Fixes

29.0.1 (2022-09-13)

Bug Fixes
  • legacy: include existing globals config in cached config (#​3803) (e79be47)
Features
  • add typings for ts-jest options via transform config (#​3805) (664b0f2)

v29.0.5

Compare Source

Reverts

v29.0.4

Compare Source

Bug Fixes

v29.0.3

Compare Source

Bug Fixes
Features
  • add useESM option to pathsToModuleNameMapper options (#​3792) (eabe906)

v29.0.2

Compare Source

Bug Fixes

v29.0.1

Compare Source

Bug Fixes
  • legacy: include existing globals config in cached config (#​3803) (e79be47)
Features
  • add typings for ts-jest options via transform config (#​3805) (664b0f2)

v29.0.0

Compare Source

Features
DEPRECATIONS
  • Define ts-jest config under globals is now deprecated. Please define the config via transformer config instead.
BREAKING CHANGES
  • Only Node 14, 16 and 18 are supported
  • Jest 29 is required.

v28.0.8

Compare Source

Bug Fixes

v28.0.7

Compare Source

Bug Fixes

v28.0.6

Compare Source

Bug Fixes

v28.0.5

Compare Source

Bug Fixes

v28.0.4

Compare Source

Bug Fixes

v28.0.3

Compare Source

Bug Fixes

v28.0.2

Compare Source

Bug Fixes

v28.0.1

Compare Source

Bug Fixes

v28.0.0

Compare Source

Bug Fixes
  • legacy invoke Babel processAsync for babel-jest in ESM mode instead of process (#​3430) (0d7356c)
Features
BREAKING CHANGES
  • path-mapping AST transformer is no longer shipped in ts-jest v28. Please use an alternative one like https://github.com/LeDDGroup/typescript-transform-paths instead.
  • Any imports ts-jest/dist/compiler/ts-compiler should change to ts-jest/dist/legacy/compiler/ts-compiler
  • Any imports ts-jest/dist/compiler/ts-jest-compiler should change to ts-jest/dist/legacy/compiler/ts-jest-compiler
  • Any imports ts-jest/dist/config/config-set should change to ts-jest/dist/legacy/config/config-set
  • Minimum support TypeScript version is now 4.3 since Jest 28 requires it.
  • Jest 28 is required.
  • core: Any imports ts-jest/utils should be replaced with ts-jest.
  • core: Starting from Jest 27.4, mocked has been integrated into Jest repo.
  • core: Support for Node.js v10 has been removed as Jest drops support for it.

27.1.5 (2022-05-17)

Bug Fixes

27.1.4 (2022-03-24)

Bug Fixes

27.1.3 (2022-01-14)

Bug Fixes
  • compiler: update memory cache for compiler using received file content (#​3194) (e4d9541)

27.1.2 (2021-12-15)

Bug Fixes
  • stimulate esbuild type to avoid importing esbuild directly (#​3147) (9ace0a9)

27.1.1 (2021-12-07)

Bug Fixes

v27.1.5

Compare Source

Bug Fixes

v27.1.4

Compare Source

Bug Fixes

v27.1.3

Compare Source

Bug Fixes
  • compiler: update memory cache for compiler using received file content (#​3194) (e4d9541)

v27.1.2

Compare Source

Bug Fixes
  • stimulate esbuild type to avoid importing esbuild directly (#​3147) (9ace0a9)

v27.1.1

Compare Source

Bug Fixes

v27.1.0

Compare Source

Features
Code Refactoring

DEPRECATIONS

27.0.7 (2021-10-16)

Bug Fixes

27.0.6 (2021-10-14)

Bug Fixes

27.0.5 (2021-08-14)

Bug Fixes
Code Refactoring

27.0.4 (2021-07-21)

Bug Fixes
  • add @types/jest as optional peerDependencies to solve yarn 2 (#​2756) (5fbf43e)
  • add babel-jest as optional peerDependencies to solve yarn 2 (#​2751) (8bede2e)
  • config: include AST transformer's name and version into cache key (#​2755) (310fb9a), closes #​2753
Features

27.0.3 (2021-06-06)

Bug Fixes
Features

27.0.2 (2021-05-30)

Bug Fixes

27.0.1 (2021-05-26)

Bug Fixes

v27.0.7

Compare Source

Bug Fixes

v27.0.6

Compare Source

Bug Fixes

v27.0.5

Compare Source

Bug Fixes
Code Refactoring

v27.0.4

Compare Source

Bug Fixes
  • add @types/jest as optional peerDependencies to solve yarn 2 (#​2756) (5fbf43e)
  • add babel-jest as optional peerDependencies to solve yarn 2 (#​2751) (8bede2e)
  • config: include AST transformer's name and version into cache key (#​2755) (310fb9a), closes #​2753
Features

v27.0.3

Compare Source

Bug Fixes
Features

v27.0.2

Compare Source

Bug Fixes

v27.0.1

Compare Source

Bug Fixes

v27.0.0

Compare Source

Bug Fixes
Features
Performance Improvements
  • reuse jest file system cache for isolatedModules: false (#​2189) (68f446b)
Code Refactoring

BREAKING CHANGES

import type { TsCompilerInstance } from 'ts-jest/dist/types'

export function factory(compilerInstance: TsCompilerInstance) {
   //...
}
  • One is currently using pathRegex should use exclude with glob patterns.
  • If one currently relies on type check for js files, please set checkJs: true in your tsconfig.
  • Now both isolatedModules: true and isolatedModule: false codes are in one single class TsCompiler which is an instance created in TsJestCompiler based on config option compiler with value typescript or ttypescript.
  • config: packageJson config option is not used in internal ts-jest so this option is now removed.
  • config: One is defining ast transformers in jest.config.js/package.json should change to
// jest.config.js
module.exports = {
   //...
   globals: {
      'ts-jest': {
         astTransformers: {
           before: ['your_before_transformer_path'],
           after: ['your_after_transformer_path'],
           afterDeclarations: ['your_afterDeclarations_transformer_path'],
         }
      }
   }
}

or

// package.json
{
  "jest": {
     "globals": {
        "ts-jest": {
           "astTransformers": {
              "before": ["your_before_transformer_path"],
              "after": ["your_after_transformer_path"],
              "afterDeclarations": ["your_afterDeclarations_transformer_path"]
           }
        }
     }
  }
}
  • One currently refers type in jest.config.js
/** @​typedef {import('ts-jest')} */
module.exports = {
  //...
}

should change to

/** @​typedef {import('ts-jest/dist/types')} */
module.exports = {
  //...
}
  • Remove possibilities to import mocked, createJestPreset, pathsToModuleNameMapper from package entry. One should change to
import { mocked, createJestPreset, pathsToModuleNameMapper } from 'ts-jest/utils'
  • config: One currently uses tsConfig should change to tsconfig in your jest.config.js or package.json.

26.5.6 (2021-05-05)

Code Refactoring
  • refactor(config): show warning message for sourceMap: false (#​2557) (cf60990).

v26.5.6

Compare Source

Code Refactoring

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot added dependency-update dev-dependency major Increment the major version when merged labels Sep 25, 2022
@renovate renovate bot force-pushed the dev-dependency-renovate/ts-jest-29.x branch from a1cdcdf to 5d4787a Compare November 20, 2022 08:33
@renovate renovate bot force-pushed the dev-dependency-renovate/ts-jest-29.x branch from 5d4787a to a5f0eea Compare March 18, 2023 14:05
@renovate renovate bot force-pushed the dev-dependency-renovate/ts-jest-29.x branch from a5f0eea to c2b2009 Compare April 3, 2023 08:36
@renovate renovate bot force-pushed the dev-dependency-renovate/ts-jest-29.x branch from c2b2009 to d85cedf Compare May 28, 2023 12:59
@renovate renovate bot force-pushed the dev-dependency-renovate/ts-jest-29.x branch from d85cedf to 01df076 Compare June 30, 2023 11:20
@renovate renovate bot force-pushed the dev-dependency-renovate/ts-jest-29.x branch 2 times, most recently from cc6205a to 979a710 Compare September 23, 2023 23:26
@renovate renovate bot force-pushed the dev-dependency-renovate/ts-jest-29.x branch 2 times, most recently from da637a7 to 23de4bf Compare October 18, 2023 11:17
@renovate renovate bot force-pushed the dev-dependency-renovate/ts-jest-29.x branch 3 times, most recently from 99d7633 to 943139f Compare November 9, 2023 06:43
@renovate renovate bot force-pushed the dev-dependency-renovate/ts-jest-29.x branch from 943139f to df8a894 Compare January 22, 2024 12:54
@renovate renovate bot force-pushed the dev-dependency-renovate/ts-jest-29.x branch 2 times, most recently from e859df2 to 26e8b4f Compare May 28, 2024 08:05
@renovate renovate bot force-pushed the dev-dependency-renovate/ts-jest-29.x branch from 26e8b4f to 90361cb Compare June 16, 2024 19:15
@renovate renovate bot force-pushed the dev-dependency-renovate/ts-jest-29.x branch 3 times, most recently from 78e9564 to 0a7ee53 Compare July 10, 2024 19:57
@renovate renovate bot force-pushed the dev-dependency-renovate/ts-jest-29.x branch from 0a7ee53 to 4bc104a Compare July 18, 2024 15:58
@renovate renovate bot force-pushed the dev-dependency-renovate/ts-jest-29.x branch from 4bc104a to daf379f Compare August 1, 2024 10:15
@renovate renovate bot force-pushed the dev-dependency-renovate/ts-jest-29.x branch from daf379f to 996ed8f Compare August 23, 2024 16:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependency-update dev-dependency major Increment the major version when merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants