Jest v24.6.0 Release Notes

Release Date: 2019-04-01 // almost 5 years ago
  • ๐Ÿ”‹ Features

    • [expect]: Improve report when matcher fails, part 13 (#8077)
    • [@jest/core] Filter API pre-filter setup hook (#8142)
    • [jest-snapshot] Improve report when matcher fails, part 14 (#8132)
    • โœ… [@jest/reporter] Display todo and skip test descriptions when verbose is true (#8038)
    • โœ… [jest-runner] Support default exports for test environments (#8163)
    • ๐Ÿ‘ [pretty-format] Support React.Suspense (#8180)
    • [jest-snapshot] Indent inline snapshots (#8198)
    • ๐Ÿ”ง [jest-config] Support colors in displayName configuration (#8025)

    ๐Ÿ›  Fixes

    • โœ… [jest-circus] Fix test retries with beforeAll/beforeEach failures (#8227)
    • [expect] Fix circular references in iterable equality (#8160)
    • [jest-changed-files] Change method of obtaining git root (#8052)
    • โœ… [jest-each] Fix test function type (#8145)
    • [jest-fake-timers] getTimerCount not taking immediates and ticks into account (#8139)
    • ๐Ÿคก [jest-runtime] Allow json file as manual mock (#8159)
    • ๐Ÿ–จ [pretty-format] Print BigInt as a readable number instead of {} (#8138)
    • [jest-core] Fix ability to transform dependencies required from globalSetup script (#8143)
    • [@jest/reporters] Fix Cannot read property converageData of null (#8168)
    • ๐Ÿ‘ท [jest-worker] JEST_WORKER_ID starts at 1 (#8205)
    • 0๏ธโƒฃ [jest-config] Use default cwd even if config contains a cwd property (#7923)
    • ๐Ÿšš [jest-resolve-dependencies]: Remove internal peer dependencies (#8215)
    • ๐Ÿšš [jest-resolve]: Remove internal peer dependencies (#8215)
    • ๐Ÿšš [jest-snapshot]: Remove internal peer dependencies (#8215)
    • [jest-resolve] Fix requireActual with moduleNameMapper (#8210)
    • [jest-haste-map] Fix haste map duplicate detection in watch mode (#8237)

    ๐Ÿšง Chore & Maintenance

    • ๐Ÿšš [*] Remove flow from code base (#8061)
    • [*] Use property initializer syntax in Jest codebase (#8117)
    • ๐Ÿ“ฆ [*] Move @types/node to the root package.json (#8129)
    • ๐Ÿ“š [*] Add documentation and tests related to auto-mocking (#8099)
    • [*] Add jest-watch-typeahead as a devDependency (#6449)
    • โฌ†๏ธ [*] upgrade TS to 3.4.0-dev* for inceremental builds (#8149)
    • ๐Ÿ“„ [docs] Improve description of optional arguments in ExpectAPI.md (#8126)

    ๐ŸŽ Performance

    • โšก๏ธ [jest-haste-map] Optimize haste map data structure for serialization/deserialization (#8171)
    • [jest-haste-map] Avoid persisting haste map or processing files when not changed (#8153)
    • ๐ŸŽ [jest-core] Improve performance of SearchSource.findMatchingTests by 15% (#8184)
    • ๐ŸŽ [jest-resolve] Optimize internal cache lookup performance (#8183)
    • ๐ŸŽ [jest-core] Dramatically improve watch mode performance (#8201)
    • [jest-transform] Cache regular expression instead of creating anew for every file in ScriptTransformer (#8235)
    • ๐ŸŽ [jest-core] Fix memory leak of source map info and minor performance improvements (#8234)
    • ๐Ÿ–จ [jest-console] Fix memory leak by releasing console output reference when printed to stdout (#8233)
    • [jest-runtime] Use Map instead of Object for module registry (#8232)