Releases: jestjs/jest
Releases · jestjs/jest
22.2.2
Fixes
[babel-jest]
Revert "Remove retainLines from babel-jest" (#5496)[jest-docblock]
Support multiple of the same@pragma
. (#5154)
Features
[jest-worker]
Assign a unique id for each worker and pass it to the child process. It will be available viaprocess.env.JEST_WORKER_ID
(#5494)
Chore & Maintenance
[filenames]
Standardize file names in root (#5500)
22.2.1
22.2.0
Features
[jest-runner]
Move test summary to after coverage report (#4512)[jest-cli]
Added--notifyMode
to specify when to be notified. (#5125)[diff-sequences]
New package compares items in two sequences to find a longest common subsequence. (#5407)[jest-matcher-utils]
Addcomment
option tomatcherHint
function (#5437)[jest-config]
Allow lastComit and changedFilesWithAncestor via JSON config (#5476)[jest-util]
Add deletion toprocess.env
as well (#5466)[jest-util]
Add case-insensitive getters/setters toprocess.env
(#5465)[jest-mock]
Add util methods to create async functions. (#5318)
Fixes
[jest-cli]
Add trailing slash when checking root folder (#5464)[jest-cli]
Hide interactive mode if there are no failed snapshot tests (#5450)[babel-jest]
Remove retainLines from babel-jest (#5439)[jest-cli]
Glob patterns ignore non-require
-able files (e.g.README.md
) (#5199)[jest-mock]
Add backticks support (``) tomock
a certain package via the__mocks__
folder. (#5426)[jest-message-util]
Prevent anENOENT
crash when the test file contained a malformed source-map. (#5405).[jest]
Addimport-local
tojest
package. (#5353)[expect]
Support class instances in.toHaveProperty()
and.toMatchObject
matcher. (#5367)[jest-cli]
Fix npm update command for snapshot summary. (#5376, 5389)[expect]
Makerejects
andresolves
synchronously validate its argument. (#5364)[docs]
Add tutorial page for ES6 class mocks. (#5383)[jest-resolve]
Search required modules in node_modules and then in custom paths. (#5403)[jest-resolve]
Get builtin modules from node core. (#5411)[jest-resolve]
Detect and preserve absolute paths inmoduleDirectories
. Do not generate additional (invalid) paths by prepending each ancestor ofcwd
to the absolute path. Additionally, this fixes functionality in Windows OS. (#5398)
Chore & Maintenance
[jest-util]
Implement watch plugins (#5399)
22.1.4
22.1.3
22.1.2
22.1.1
22.1.0
Features
[jest-cli]
Make Jest exit without an error when no tests are found in the case of--lastCommit
,--findRelatedTests
, or--onlyChanged
options having been passed to the CLI[jest-cli]
Add interactive snapshot mode (#3831)
Fixes
[jest-cli]
Useimport-local
to support global Jest installations. (#5304)[jest-runner]
Fix memory leak in coverage reporting (#5289)[docs]
Update mention of the minimal version of node supported (#4947)[jest-cli]
Fix missing newline in console message (#5308)[jest-cli]
--lastCommit
and--changedFilesWithAncestor
now take effect even when--onlyChanged
is not specified. (#5307)
Chore & Maintenance
[filenames]
Standardize folder names underintegration-tests/
(#5298)
22.0.5
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)