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 indisplayName
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]
PrintBigInt
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) [*]
Addjest-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]
UseMap
instead ofObject
for module registry (#8232)