Fixes
[jest-leak-detector]
Removed the reference toweak
. Now, parent projects must install it by hand for the module to work.[expect]
Fail test when the types ofstringContaining
andstringMatching
matchers do not match. (#5069)[jest-cli]
Treat dumb terminals as noninteractive (#5237)[jest-cli]
jest --onlyChanged --changedFilesWithAncestor
now also works with git. (#5189)[jest-config]
fix unexpected condition to avoid infinite recursion in Windows platform. (#5161)[jest-config]
Escape parentheses and other glob characters inrootDir
before interpolating withtestMatch
. (#4838)[jest-regex-util]
Fix breaking change in--testPathPattern
(#5230)[expect]
Do not overrideError
stack (withError.captureStackTrace
) for custom matchers. (#5162)[pretty-format]
Pretty format for DOMStringMap and NamedNodeMap (#5233)[jest-cli]
Use a better console-clearing string on Windows (#5251)
Features
[jest-jasmine]
Allowed classes and functions asdescribe
names. (#5154)[jest-jasmine2]
Support generator functions as specs. (#5166)[jest-jasmine2]
AllowspyOn
with getters and setters. (#5107)[jest-config]
Allow configuration objects insideprojects
array (#5176)[expect]
Add support to.toHaveProperty
matcher to accept the keyPath argument as an array of properties/indices. (#5220)[docs]
Add documentation for .toHaveProperty matcher to accept the keyPath argument as an array of properties/indices. (#5220)[jest-runner]
test environments are now passed a newoptions
parameter. Currently this only has theconsole
which is the test console that Jest will expose to tests. (#5223)[jest-environment-jsdom]
pass theoptions.console
to a custom instance ofvirtualConsole
so jsdom is using the same console as the test. (#5223)