Jest v25.5.0 Release Notes
Release Date: 2020-04-28 // about 4 years ago-
๐ Features
- ๐ฆ
[@jest/globals]
New package so Jest's globals can be explicitly imported (#9801) - โ
[jest-core]
Show coverage of sources related to tests in changed files (#9769) [jest-runtime]
Populaterequire.cache
(#9841)
๐ Fixes
- ๐ฆ
[*]
Usegraceful-fs
directly in every package instead of relying onfs
being monkey patched (#9443) - ๐จ
[expect]
Prints the Symbol name into the error message with a custom asymmetric matcher (#9888) - ๐
[jest-circus, jest-jasmine2]
Support older version ofjest-runtime
(#9903 & #9842) [@jest/environment]
Make sure not to reference Jest types (#9875)- ๐จ
[jest-message-util]
Code frame printing should respect--noStackTrace
flag (#9866) - ๐
[jest-runtime]
Support importing CJS from ESM usingimport
statements (#9850) - ๐
[jest-runtime]
Support importing parallel dynamicimport
s (#9858) [jest-transform]
Improve source map handling when instrumenting transformed code (#9811)
๐ง Chore & Maintenance
- ๐คก
[docs]
Add an example for mocking non-default export class
๐ Performance
- โก๏ธ
[jest-resolve]
Updateresolve
to a version using nativerealpath
, which is faster than the default JS implementation (#9872) [jest-resolve]
Pass custom cachedrealpath
function toresolve
(#9873)- โ
[jest-runtime]
Addteardown
method to clear any caches when tests complete (#9906) [jest-runtime]
Do not pass files required internally through transformation when loading them (#9900)[jest-runtime]
UseMap
s instead of object literals as cache holders (#9901)
- ๐ฆ