Skip to content
This repository has been archived by the owner on Dec 8, 2021. It is now read-only.

Update dependency ts-jest to v27 #134

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

Conversation

realliance-renovate
Copy link
Contributor

@realliance-renovate realliance-renovate commented May 25, 2021

This PR contains the following updates:

Package Type Update Change
ts-jest (source) devDependencies major 26.5.4 -> 27.1.0

Release Notes

kulshekhar/ts-jest

v27.1.0

Compare Source

Features
Code Refactoring

DEPRECATIONS

  • transformers: path-mapping AST transformer is deprecated and will be removed in v28.0.0. One should use an alternative one like https://github.com/LeDDGroup/typescript-transform-paths instead.
  • utils: mocked function is deprecated and will be removed in v28.0.0. The function has been integrated into jest-mock package as a part of Jest 27.4.0, see facebook/jest#​12089. One should use the one from Jest instead

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

  • By default, ts-jest will use sourceMap option from your tsconfig. If users want to have sourcemap on, they need to set sourceMap: true in tsconfig.

  • follow Jest support Node engines (#​2478) (1fecf7f)

  • add exports field to package.json, see https://nodejs.org/api/packages.html#packages_package_entry_points (#​2467) (d3aba3e)

  • ts-jest custom AST transformer function signature has changed to

    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
  • refactor(config): show warning message for sourceMap: false (#​2557) (cf60990).

v26.5.5

Compare Source

Bug Fixes

Configuration

📅 Schedule: 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 has been generated by Renovate Bot.

@realliance-renovate realliance-renovate force-pushed the renovate/ts-jest-27.x branch 2 times, most recently from 52a777f to bdaad22 Compare May 31, 2021 04:51
@realliance-renovate realliance-renovate changed the title Update dependency ts-jest to v27 Update dependency ts-jest to v27 - autoclosed Jul 6, 2021
@realliance-renovate realliance-renovate deleted the renovate/ts-jest-27.x branch July 6, 2021 10:02
@realliance-renovate realliance-renovate changed the title Update dependency ts-jest to v27 - autoclosed Update dependency ts-jest to v27 Jul 6, 2021
@realliance-renovate realliance-renovate restored the renovate/ts-jest-27.x branch July 6, 2021 10:14
@realliance-renovate realliance-renovate force-pushed the renovate/ts-jest-27.x branch 2 times, most recently from 8bde071 to 6ada16f Compare October 16, 2021 10:21
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant