Packages

@jest/environment

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

Your version

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

  1. 27.x
  2. 27.4.1

    30 Nov 2021
    • jest-worker: Filter execArgv correctly

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

  4. 27.3.1

    19 Oct 2021
    • expect: Make expect extension properties configurable

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

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

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

  7. 27.2.4

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

    • jest-snapshot: Correctly indent inline snapshots

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

  9. 27.2.2

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

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

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

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

  13. 27.0.6

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

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

  15. 27.0.3

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

    • jest-mock: Fixed fn and spyOn exports

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

  17. 27.0.1

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

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

  19. 26.x
  20. 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

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

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

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

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

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

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

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

  28. 26.0.1

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

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

  30. 25.x
  31. 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

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

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

  34. 25.2.6

    2 Apr 2020

    Reading the note…

  35. 25.2.4

    29 Mar 2020

    Reading the note…

  36. 25.2.3

    26 Mar 2020

    Reading the note…

  37. 25.2.1

    26 Mar 2020

    Reading the note…

  38. 25.2.0

    25 Mar 2020

    Reading the note…

  39. 25.1.0

    22 Jan 2020

    Reading the note…

  40. 25.0.0

    22 Aug 2019

    Reading the note…

  41. 24.x
  42. 24.9.0

    16 Aug 2019

    Reading the note…

  43. 24.8.0

    5 May 2019

    Reading the note…

  44. 24.7.1

    4 Apr 2019

    Reading the note…

  45. 24.7.0

    3 Apr 2019

    Reading the note…

  46. 24.6.0

    1 Apr 2019

    Reading the note…

  47. 24.5.0

    12 Mar 2019

    Reading the note…

  48. 24.4.0

    11 Mar 2019

    Reading the note…

  49. 24.3.1

    7 Mar 2019

    Reading the note…

  50. 24.3.0

    7 Mar 2019

    Reading the note…

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.