Packages

jest-mock

30.5.2 · 18 Sep 2026MIT94.8M / weekRepositoryHomepagenpmAtom feed

Your version

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

  1. 27.x
  2. 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).

  3. 27.0.6

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

  4. 27.0.3

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

    • jest-mock: Fixed fn and spyOn exports

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

  6. 27.0.1

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

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

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

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

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

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

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

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

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

  16. 26.0.1

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

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

  18. 25.x
  19. 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

  20. 25.4.0

    19 Apr 2020

    Reading the note…

  21. 25.3.0

    8 Apr 2020

    Reading the note…

  22. 25.2.6

    2 Apr 2020

    Reading the note…

  23. 25.2.5

    2 Apr 2020

    Reading the note…

  24. 25.2.3

    26 Mar 2020

    Reading the note…

  25. 25.2.1

    26 Mar 2020

    Reading the note…

  26. 25.2.0

    25 Mar 2020

    Reading the note…

  27. 25.1.0

    22 Jan 2020

    Reading the note…

  28. 25.0.0

    22 Aug 2019

    Reading the note…

  29. 24.x
  30. 24.9.0

    16 Aug 2019

    Reading the note…

  31. 24.8.0

    5 May 2019

    Reading the note…

  32. 24.7.0

    3 Apr 2019

    Reading the note…

  33. 24.6.0

    1 Apr 2019

    Reading the note…

  34. 24.5.0

    12 Mar 2019

    Reading the note…

  35. 24.3.0

    7 Mar 2019

    Reading the note…

  36. 24.0.0

    25 Jan 2019

    Reading the note…

  37. 23.x
  38. 23.2.0

    25 Jun 2018

    Reading the note…

  39. 23.1.0

    30 May 2018

    Reading the note…

  40. 23.0.2

    30 May 2018

    Reading the note…

  41. 23.0.1

    27 May 2018

    Reading the note…

  42. 23.0.0

    24 May 2018

    Reading the note…

  43. 22.x
  44. 22.4.3

    21 Mar 2018

    Reading the note…

  45. 22.2.0

    7 Feb 2018

    Reading the note…

  46. 22.1.0

    15 Jan 2018

    Reading the note…

  47. 22.0.6

    11 Jan 2018

    Reading the note…

  48. 22.0.5

    9 Jan 2018

    Reading the note…

  49. 22.0.3

    19 Dec 2017

    Reading the note…

  50. 22.0.2

    19 Dec 2017

    Reading the note…

  51. 22.0.1

    18 Dec 2017

    Reading the note…

  52. 22.0.0

    18 Dec 2017

    Reading the note…

  53. 21.x
  54. 21.2.0

    26 Sep 2017

    Reading the note…

  55. 21.1.0

    14 Sep 2017

    Reading the note…

  56. 21.0.2

    8 Sep 2017

    Reading the note…

  57. 21.0.0

    4 Sep 2017

    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.