Skip to content
This repository has been archived by the owner on Oct 27, 2024. It is now read-only.

chore(deps): update dependency ts-jest to v27 #638

Merged
merged 1 commit into from
Jun 6, 2021

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented May 25, 2021

WhiteSource Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
ts-jest (source) 26.5.6 -> 27.0.2 age adoption passing confidence
ts-jest (source) ^26.0.0 -> ^27.0.0 age adoption passing confidence

Release Notes

kulshekhar/ts-jest

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).

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 these updates again.


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

This PR has been generated by WhiteSource Renovate. View repository job log here.

@renovate renovate bot force-pushed the renovate/ts-jest-27.x branch 6 times, most recently from 3fa576d to 5dbf6b9 Compare June 2, 2021 10:16
@renovate renovate bot force-pushed the renovate/ts-jest-27.x branch 4 times, most recently from 0f3d9b0 to b51e5a6 Compare June 5, 2021 03:19
@renovate renovate bot force-pushed the renovate/ts-jest-27.x branch from b51e5a6 to 9c7b142 Compare June 5, 2021 15:05
@ndxbn ndxbn changed the base branch from master to renovate/major-jest-monorepo June 6, 2021 03:44
@ndxbn ndxbn changed the base branch from renovate/major-jest-monorepo to development June 6, 2021 03:45
@ndxbn ndxbn merged commit cfb443d into development Jun 6, 2021
@ndxbn ndxbn deleted the renovate/ts-jest-27.x branch June 6, 2021 03:45
@ndxbn ndxbn mentioned this pull request Jun 6, 2021
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.

2 participants