Jest v27.4.0 Release Notes

  • ๐Ÿ”‹ Features

    • ๐Ÿ‘ [expect] Enhancing the toHaveProperty matcher to support array selection (#12092)
    • โœ… [jest-core] Add support for testResultsProcessor written in ESM (#12006)
    • [jest-diff, pretty-format] Add compareKeys option for custom sorting of object keys (#11992)
    • ๐Ÿคก [jest-mock] Add ts-jest mock util functions (#12089)

    ๐Ÿ›  Fixes

    • [expect] Allow again expect.Matchers generic with single value (#11986)
    • โœ… [jest-circus, jest-jasmine2] Avoid false concurrent test failures due to unhandled promise rejections (#11987)
    • ๐Ÿ“ฆ [jest-config] Add missing slash dependency to package.json (#12080)
    • [jest-core] Incorrect detection of open ZLIB handles (#12022)
    • [jest-diff] Break dependency cycle (#10818)
    • [jest-environment-jsdom] Add @types/jsdom dependency (#11999)
    • [jest-environment-jsdom] Do not reset the global.document too early on teardown (#11871)
    • โš  [jest-transform] Improve error and warning messages (#11998)
    • ๐Ÿ‘ท [jest-worker] Pass execArgv correctly to worker_threads worker (#12069)

    ๐Ÿšง Chore & Maintenance

    • ๐Ÿ“„ [docs] CLI options alphabetized (#11586)
    • [jest-runner] Add info regarding timers to forcedExit message(#12083)
    • [*] Replaced substr method with substring (#12066)
    • [*] Add types entry to all export maps (#12073)