Packages

@jest/core

30.5.2 · 18 Sep 2026MIT60.2M / weekRepositoryHomepagenpmAtom feed

Your version

118 stable releases, newest first, by release line. Notes are quoted as the maintainers published them.

  1. 27.x
  2. 27.5.0

    5 Feb 2022
    • expect: Add asymmetric matcher expect.closeTo

    • jest-mock: Added mockFn.mock.lastCall to retrieve last argument

    • expect: Add a fix for .toHaveProperty('')

  3. 27.4.7

    5 Jan 2022
  4. 27.4.6

    4 Jan 2022
    • jest-environment-node: Add AbortSignal

    • jest-environment-node: Add Missing node global performance

    • jest-runtime: Handle missing mocked property

  5. 27.4.5

    13 Dec 2021
    • jest-worker: Stop explicitly passing process.env

  6. 27.4.4

    10 Dec 2021
    • babel-jest: Add process.version chunk to the cache key

    • jest-environment: Add mocked to jest object

    • jest-worker: Stop explicitly passing execArgv

  7. 27.4.3

    1 Dec 2021
    • removed

      jest-environment-jsdom: Remove @types/jsdom dependency (and make its dom property private)

  8. 27.4.2

    30 Nov 2021
    • jest-worker: Add additional execArgv to filter

  9. 27.4.1

    30 Nov 2021
    • jest-worker: Filter execArgv correctly

  10. 27.4.0

    29 Nov 2021
    • expect: Enhancing the toHaveProperty matcher to support array selection

    • jest-core: Add support for testResultsProcessor written in ESM

    • jest-diff, pretty-format: Add compareKeys option for custom sorting of object keys

  11. 27.3.1

    19 Oct 2021
    • expect: Make expect extension properties configurable

    • expect: Fix .any() checks on primitive wrapper classes

  12. 27.3.0

    17 Oct 2021
    • jest-config: Add testEnvironmentOptions.html to apply to jsdom input

    • jest-resolver: Support default export (.) in exports field if main is missing

    • expect: Tweak and improve types

  13. 27.2.5

    8 Oct 2021
    • deprecated

      @jest/types: Mark deprecated configuration options as @deprecated

    • jest-config: Warn when multiple Jest configs are located

    • expect: Pass matcher context to asymmetric matchers (#11926 & #11930)

  14. 27.2.4

    29 Sep 2021
    • expect: Add equality checks for Array Buffers in expect.ToStrictEqual()

    • jest-snapshot: Correctly indent inline snapshots

  15. 27.2.3

    28 Sep 2021
    • jest-config: Parse testEnvironmentOptions if received from CLI

    • jest-reporters: Call destroy on v8-to-istanbul converters to free memory

  16. 27.2.2

    25 Sep 2021
    • jest-runtime: Correct wrapperLength value for ESM modules.

  17. 27.2.1

    20 Sep 2021
    • jest-transform: Improve the unexpected token error message.

    • jest-runtime: Fix regression when using jest.isolateModules and mocks

    • jest-runtime: Include test name when importing modules after test has completed

  18. 27.2.0

    13 Sep 2021
    • jest-resolver, jest-runtime: Pass conditions to custom resolvers to enable them to implement support for package.json exports field

    • jest-runtime: Allow custom envs to specify exportConditions which is passed together with Jest's own conditions to custom resolvers

    • @jest/reporters: Use async transform if available to transform files with no coverage

  19. 27.1.1

    8 Sep 2021
    • jest-runtime: Add experimental, limited (and undocumented) support for mocking ECMAScript Modules

    • jest-resolver: Support node: prefix when importing Node core modules with ESM

    • jest-types: Export the PrettyFormatOptions interface

  20. 27.1.0

    27 Aug 2021
    • jest-haste-map: Use watchman suffix-set option for faster file indexing.

    • jest-cli: Adds a new config options snapshotFormat which offers a way to override any of the formatting settings which come with pretty-format.

    • jest-reporters: Expose the getSummary util (#11695).

  21. 27.0.6

    28 Jun 2021
    • *: Publish all modules to include the build change

  22. 27.0.5

    22 Jun 2021
    • @jest/fake-timers: Flush callbacks scheduled with requestAnimationFrame every 16ms when using legacy timers.

    • pretty-format: Use globalThis (with polyfill if required) to bring support for esbuild's browser bundling mode (#11569

    • jest-core: Support special characters like @, + and () on Windows with --findRelatedTests

  23. 27.0.4

    3 Jun 2021
    • jest-config, jest-resolve: Pass in require.resolve to resolvers to resolve from correct base

  24. 27.0.3

    29 May 2021
    • jest-config: require.resolve on default test sequencer and test environment

    • jest-mock: Fixed fn and spyOn exports

  25. 27.0.2

    29 May 2021
    • jest-circus: Add some APIs to make it easier to build your own test runner

    • jest-reporters: Expose the getResultHeader util

    • jest-resolver: Export resolve* utils for different Jest modules

  26. 27.0.1

    25 May 2021
    • jest-environment-jsdom: Bump version of JSDOM to avoid deprecated request package

  27. 27.0.0

    25 May 2021
    • breaking

      jest-circus: Fail tests when multiple done() calls are made

    • breaking

      jest-circus, jest-jasmine2: Fail the test instead of just warning when describe returns a value

    • breaking

      jest-config: Default to Node testing environment instead of browser (JSDOM)

  28. 26.x
  29. 26.6.3

    4 Nov 2020
    • jest-resolve-dependencies: Continue dependency resolution if mock dependency can't be found

  30. 26.6.2

    2 Nov 2020
    • jest-core: Add findRelatedTests and nonFlagArgs in allowed config options for updateConfigAndRun in watch plugins

    • babel-plugin-jest-hoist: Preserve order of hoisted mock nodes within containing block

    • babel-plugin-jest-hoist: Hoist pure constants to support experimental JSX transform in hoisted mocks

  31. 26.6.1

    23 Oct 2020
    • jest-runtime: Support named exports from CommonJS as named ES Module imports

    • jest-validate: Add support for recursiveDenylist option as an alternative to recursiveBlacklist

    • expect: Fix objectContaining to work recursively into sub-objects

  32. 26.6.0

    19 Oct 2020
    • jest-cli, jest-config: Add support for the jest.config.ts configuration file

    • jest-config: Simplify transform RegExp

    • jest-fake-timers: Lazily instantiate mock timers

  33. 26.5.3

    11 Oct 2020
    • jest-runtime: Add support for dynamic import() from CommonJS

    • jest-runner, jest-runtime: require.main should not be undefined with createRequire()

    • jest-runtime: Add missing module.path property

  34. 26.5.2

    6 Oct 2020
    • *: Revert usage of Escalade and rollback Yargs to v15 as it breaks Node 13

    • jest-circus: Setup globals before emitting setup, and include Jest globals in the setup payload

    • jest-mock: Fix typings for mockResolvedValue, mockResolvedValueOnce, mockRejectedValue and mockRejectedValueOnce

  35. 26.5.0

    5 Oct 2020
    • jest-circus, jest-config, jest-runtime: Add new injectGlobals config and CLI option to disable injecting global variables into the runtime

    • jest-each: Fixes .each type to always be callable

    • jest-runner: Add support for moduleLoaders with default exports

  36. 26.4.2

    22 Aug 2020
    • breaking

      pretty-format: Lower minimum node version to >= 10

    • expect: Fix toMatchObject to work with inherited class getters

  37. 26.4.1

    20 Aug 2020
    • jest-core: Don't report ELDHistogram as open handle

    • jest-matcher-utils: Fix diffing object contain readonly symbol key object

    • jest-reporters: Fixes notify reporter on Linux (using notify-send)

  38. 26.4.0

    12 Aug 2020
    • jest-resolve: Add support for packageFilter on custom resolver

    • pretty-format: Handle tagName not being a string

  39. 26.3.0

    10 Aug 2020
    • breaking

      jest-worker: Downgrade minimum node version to 10.13

    • jest-circus, jest-jasmine2: Include failureDetails property in test results

    • jest-each, jest-jasmine, jest-circus: Add support for .concurrent.each

  40. 26.2.2

    31 Jul 2020
    • jest-cli: Use correct file name to override existing jest config on init

    • jest-haste-map: Properly detect support for native find

  41. 26.2.1

    30 Jul 2020
    • jest-worker: Make sure to work with Node TS typings v12

  42. 26.2.0

    30 Jul 2020
    • [jest-core, jest-circus, jest-reporter, jest-runner] Added support for reporting individual test cases using jest-circus

    • [jest-config, jest-reporter, jest-runner, jest-test-sequencer] Add slowTestThreshold configuration option

    • jest-haste-map: Watchman crawler now includes dotfiles

  43. 26.1.0

    23 Jun 2020
    • jest-mock: Export Mock, MockInstance, SpyInstance types

    • jest-config: Support config files exporting (async) functions

    • jest-cli, jest-core: Add --selectProjects CLI argument to filter test suites by project name

  44. 26.0.1

    5 May 2020
    • jest-circus: Backward compatibility for deprecated DescribeBlock.tests to not break e.g. Detox reporter

  45. 26.0.0

    4 May 2020
    • breaking

      jest-environment-jsdom: Upgrade jsdom to v16

    • breaking

      jest-circus: Fail tests if a test takes a done callback and have return values

    • breaking

      jest-circus: Throw a proper error if a test / hook is defined asynchronously

  46. 25.x
  47. 25.5.4

    2 May 2020
    • jest-jasmine2: Don't run beforeAll / afterAll in skipped describe blocks

  48. 25.5.3

    30 Apr 2020

    Maintenance only: docs, tests, build or refactoring. Nothing changes in how you use it.

  49. 25.5.2

    29 Apr 2020
    • jest-globals: Export globals as values, not types

  50. 25.5.1

    29 Apr 2020
    • jest-haste-map: Add missing @types/graceful-fs dependency

    • jest-runner: Correctly serialize Set passed to worker

    • jest-runtime: Vary ESM cache by query

  51. 25.5.0

    28 Apr 2020
    • @jest/globals: New package so Jest's globals can be explicitly imported

    • jest-core: Show coverage of sources related to tests in changed files

    • jest-runtime: Populate require.cache

  52. 25.4.0

    19 Apr 2020
    • expect: Support async functions in toThrow

    • jest-console: Add code frame to console.error and console.warn

    • jest-runtime, jest-jasmine2, jest-circus: Experimental, limited ECMAScript Modules support (#9772 & #9842)

  53. 25.3.0

    8 Apr 2020
    • babel-jest: Support passing supportsDynamicImport and supportsStaticESM

    • babel-preset-jest: Enable all syntax plugins not enabled by default that works on current version of Node

    • jest-circus: Enable writing async test event handlers