Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ts-jest

Package Overview
Dependencies
Maintainers
3
Versions
199
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ts-jest - npm Package Versions

1
20

27.0.0-next.5

Diff

Changelog

Source

27.0.0-next.5 (2021-02-04)

Features

  • compiler: allow custom transformers to access internal Program (#2299) (387964f)

BREAKING CHANGES

ts-jest custom AST transformer function signature has changed to

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

export function factory(compilerInstance: TsCompilerInstance) {
   //...
}
anhpnnd
published 26.5.0 •

Changelog

Source

26.5.0 (2021-01-29)

Bug Fixes

  • reduce size of node_modules when adding ts-jest (#2309) (6bf2e8a)

Features

  • introduce exclude to exclude files from diagnostics (#2308) (cd82fd3)

DEPRECATIONS

  • config: deprecate pathRegex in favor of exclude (#2308) (cd82fd3)
kul
published 27.0.0-next.4 •

Changelog

Source

27.0.0-next.4 (2021-01-22)

Features

  • config: replace pathRegex with exclude (#2295) (f2f99c3)
  • config: type checking js files based on checkJs (#2283) (1e04433)

BREAKING CHANGES

  • 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
kul
published 27.0.0-next.3 •

Changelog

Source

27.0.0-next.3 (2021-01-14)

Bug Fixes

  • reduce size of node_modules when adding ts-jest (#2263) (8e0675c)

Features

kul
published 27.0.0-next.2 •

Changelog

Source

27.0.0-next.2 (2020-12-17)

Bug Fixes

Features

Performance Improvements

  • reuse jest file system cache for isolatedModules: false (#2189) (68f446b)
kul
published 27.0.0-alpha.1 •

Changelog

Source

27.0.0-alpha.1 (2020-11-26)

BREAKING CHANGES

  • 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.
kul
published 27.0.0-alpha.0 •

Changelog

Source

27.0.0-alpha.0 (2020-11-11)

Code Refactoring

  • config: remove support for astTransformers string array (#2129) (1e0b2ce)
  • config: remove support for packageJson option (#2128) (05916b9)
  • move jest transformer class to package entry (#2122) (5bbfd06)
  • config: remove support for tsConfig option (#2127) (3cc9b80)

BREAKING CHANGES

  • 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
kul
published 26.4.4 •

Changelog

Source

26.4.4 (2020-11-08)

Bug Fixes

Features

anhpnnd
published 26.4.4-alpha.0 •

kul
published 26.4.3 •

Changelog

Source

26.4.3 (2020-10-26)

Bug Fixes

Features

  • config: allow to override resolve tsconfig behavior (#2063) (9f46ace)
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc