jest-cli v25.2.0 Release Notes
Release Date: 2020-03-25 // about 4 years ago-
๐ Features
- ๐
[jest-config]
Support ESM config files with.js
extension (#9573). [jest-runtime]
Overridemodule.createRequire
to return a Jest-compatiblerequire
function (#9469)- ๐ฅ
[jest-haste-map]
[BREAKING] Removemapper
option (#9581) - ๐
[*]
Support array of paths formoduleNameMapper
aliases (#9465) [jest-reporters]
Adds ability to pass options to the istanbul-reporter throughcoverageReporters
(#9572)[jest-runtime]
Require stack when a module cannot be resolved (#9681)[jest-transform]
writeCacheFile
no longer callsfsync
(#9695)
๐ Fixes
[expect]
Handle readonly properties correctly (#9575)[jest-cli]
SetcoverageProvider
correctly when provided in config (#9562)[jest-cli]
Allow specifying.cjs
and.mjs
config files by--config
CLI option (#9578)- โก๏ธ
[jest-cli]
Update yargs to fix CLI flag overriding (#9519) [jest-config]
TreatsetupFilesAfterEnv
likesetupFiles
when normalizing configs against presets (#9495)- ๐
[jest-config]
Support.mjs
config files on Windows as well (#9558) [jest-config]
VerifyrootDir
and allroots
are directories (#9569)[jest-config]
Ensure pattern ofreplacePosixSep
is a string (#9546)[jest-haste-map]
Fix crash on unix based systems without find (#9579)- โ
[jest-jasmine2]
Fix--testNamePattern
matching withconcurrent
tests (#9090) [jest-matcher-utils]
Fix diff highlight of symbol-keyed object. (#9499)- โฑ
[@jest/reporters]
Notifications should be fire&forget rather than having a timeout (#9567) - ๐ป
[jest-resolve]
Fix module identity preservation with symlinks and browser field resolution (#9511) [jest-resolve]
Do not confuse directories with files (#8912)[jest-resolve]
moduleNameMapper
should take precedence over Node core modules (#9563)[jest-runtime]
ResetisolateModules
if it fails (#9541)[jest-runtime]
Yarn PnP errors displayed to the user (#9681)- โฌ๏ธ
[jest-snapshot]
Downgrade semver to v6 to support node 8 (#9451) [jest-snapshot]
Properly indent new snapshots in the presences of existing ones (#9523)[jest-transform]
Correct sourcemap behavior for transformed and instrumented code (#9460)[jest-transform]
Allow instrumentation of transformed files with weird file extensions (#9589)- ๐
[@jest/types]
MakeConfigGlobals
an interface to allow for declaration merging. (#9570) - ๐
[pretty-format]
ExportOldPlugin
type (#9491)
๐ง Chore & Maintenance
- ๐
[docs]
Warn about unexpected behavior / bug of node-notifier when using thenotify
options. - ๐
[docs]
Grammatical corrections to Async docs page. (#9679) - ๐ฆ
[jest-resolver]
Useresolve
package to implement custom module resolution (#9520) - ๐
[jest-runtime]
Move execution ofsetupFiles
tojest-runner
(#9596) - โก๏ธ
[jest-runtime]
Update anchor link inhelpers
(#9616) - ๐
[@jest/reporters]
Remove unused dependencies and type exports (#9462) - โก๏ธ
[website]
Update pictures of reports when matchers fail (#9214)
๐ Performance
[jest-haste-map]
Reduce number oflstat
calls in node crawler (#9514)
- ๐