This Pull Request updates dependency jest from ^20.0.0 to ^20.0.0 || ^22.0.0
Release Notes
### [`v21.0.0`](https://github.com/facebook/jest/blob/master/CHANGELOG.md#jest-2100)
* Add --changedFilesWithAncestor
([#4070](`https://github.com/facebook/jest/pull/4070`))
* Add --findRelatedFiles ([#4131](`https://github.com/facebook/jest/pull/4131`))
* Add --onlyChanged tests ([#3977](`https://github.com/facebook/jest/pull/3977`))
* Add `contextLines` option to jest-diff
([#4152](`https://github.com/facebook/jest/pull/4152`))
* Add alternative serialize API for pretty-format plugins
([#4114](`https://github.com/facebook/jest/pull/4114`))
* Add displayName to MPR ([#4327](`https://github.com/facebook/jest/pull/4327`))
* Add displayName to TestResult
([#4408](`https://github.com/facebook/jest/pull/4408`))
* Add es5 build of pretty-format
([#4075](`https://github.com/facebook/jest/pull/4075`))
* Add extra info to no tests for changed files message
([#4188](`https://github.com/facebook/jest/pull/4188`))
* Add fake chalk in browser builds in order to support IE10
([#4367](`https://github.com/facebook/jest/pull/4367`))
* Add jest.requireActual ([#4260](`https://github.com/facebook/jest/pull/4260`))
* Add maxWorkers to globalConfig
([#4005](`https://github.com/facebook/jest/pull/4005`))
* Add skipped tests support for jest-editor-support
([#4346](`https://github.com/facebook/jest/pull/4346`))
* Add source map support for better debugging experience
([#3738](`https://github.com/facebook/jest/pull/3738`))
* Add support for Error objects in toMatchObject
([#4339](`https://github.com/facebook/jest/pull/4339`))
* Add support for Immutable.Record in pretty-format
([#3678](`https://github.com/facebook/jest/pull/3678`))
* Add tests for extract_requires on export types
([#4080](`https://github.com/facebook/jest/pull/4080`))
* Add that toMatchObject can match arrays
([#3994](`https://github.com/facebook/jest/pull/3994`))
* Add watchPathIgnorePatterns to exclude paths to trigger test re-run in watch
mode ([#4331](`https://github.com/facebook/jest/pull/4331`))
* Adding ancestorTitles property to JSON test output
([#4293](`https://github.com/facebook/jest/pull/4293`))
* Allow custom resolver to be used with[out] moduleNameMapper
([#4174](`https://github.com/facebook/jest/pull/4174`))
* Avoid parsing `.require(…)` method calls
([#3777](`https://github.com/facebook/jest/pull/3777`))
* Avoid unnecessary function declarations and call in pretty-format
([#3962](`https://github.com/facebook/jest/pull/3962`))
* Avoid writing to stdout in default reporter if --json is enabled. Fixes #3941
([#3945](`https://github.com/facebook/jest/pull/3945`))
* Better error handling for --config
([#4230](`https://github.com/facebook/jest/pull/4230`))
* Call consistent pretty-format plugins within Jest
([#3800](`https://github.com/facebook/jest/pull/3800`))
* Change babel-core to peerDependency for compatibility with Babel 7
([#4162](`https://github.com/facebook/jest/pull/4162`))
* Change Promise detection code in jest-circus to support non-global Promise
implementations ([#4375](`https://github.com/facebook/jest/pull/4375`))
* Changed files eager loading
([#3979](`https://github.com/facebook/jest/pull/3979`))
* Check whether we should output to stdout or stderr
([#3953](`https://github.com/facebook/jest/pull/3953`))
* Clarify what objects toContain and toContainEqual can be used on
([#4307](`https://github.com/facebook/jest/pull/4307`))
* Clean up resolve() logic. Provide useful names for variables and functions.
Test that a directory exists before attempting to resolve files within it.
([#4325](`https://github.com/facebook/jest/pull/4325`))
* cleanupStackTrace ([#3696](`https://github.com/facebook/jest/pull/3696`))
* compare objects with Symbol keys
([#3437](`https://github.com/facebook/jest/pull/3437`))
* Complain if expect is passed multiple arguments
([#4237](`https://github.com/facebook/jest/pull/4237`))
* Completes nodeCrawl with empty roots
([#3776](`https://github.com/facebook/jest/pull/3776`))
* Consistent naming of files
([#3798](`https://github.com/facebook/jest/pull/3798`))
* Convert code base to ESM import
([#3778](`https://github.com/facebook/jest/pull/3778`))
* Correct summary message for flag --findRelatedTests.
([#4309](`https://github.com/facebook/jest/pull/4309`))
* Coverage thresholds can be set up for individual files
([#4185](`https://github.com/facebook/jest/pull/4185`))
* custom reporter error handling
([#4051](`https://github.com/facebook/jest/pull/4051`))
* Define separate type for pretty-format plugin Options
([#3802](`https://github.com/facebook/jest/pull/3802`))
* Delete confusing async keyword
([#3679](`https://github.com/facebook/jest/pull/3679`))
* Delete redundant branch in ReactElement and HTMLElement plugins
([#3731](`https://github.com/facebook/jest/pull/3731`))
* Don't format node assert errors when there's no 'assert' module
([#4376](`https://github.com/facebook/jest/pull/4376`))
* Don't print test summary in --silent
([#4106](`https://github.com/facebook/jest/pull/4106`))
* Don't try to build ghost packages
([#3934](`https://github.com/facebook/jest/pull/3934`))
* Escape double quotes in attribute values in HTMLElement plugin
([#3797](`https://github.com/facebook/jest/pull/3797`))
* Explain how to clear the cache
([#4232](`https://github.com/facebook/jest/pull/4232`))
* Factor out common code for collections in pretty-format
([#4184](`https://github.com/facebook/jest/pull/4184`))
* Factor out common code for markup in React plugins
([#4171](`https://github.com/facebook/jest/pull/4171`))
* Feature/internal resolve ([#4315](`https://github.com/facebook/jest/pull/4315`))
* Fix --logHeapUsage ([#4176](`https://github.com/facebook/jest/pull/4176`))
* Fix --showConfig to show all project configs
([#4078](`https://github.com/facebook/jest/pull/4078`))
* Fix --watchAll ([#4254](`https://github.com/facebook/jest/pull/4254`))
* Fix bug when setTimeout is mocked
([#3769](`https://github.com/facebook/jest/pull/3769`))
* Fix changedFilesWithAncestor
([#4193](`https://github.com/facebook/jest/pull/4193`))
* Fix colors for expected/stored snapshot message
([#3702](`https://github.com/facebook/jest/pull/3702`))
* Fix concurrent test failure
([#4159](`https://github.com/facebook/jest/pull/4159`))
* Fix for 4286: Compare Maps and Sets by value rather than order
([#4303](`https://github.com/facebook/jest/pull/4303`))
* fix forceExit ([#4105](`https://github.com/facebook/jest/pull/4105`))
* Fix grammar in React Native docs
([#3838](`https://github.com/facebook/jest/pull/3838`))
* Fix inconsistent name of complex values in pretty-format
([#4001](`https://github.com/facebook/jest/pull/4001`))
* Fix issue mocking bound method
([#3805](`https://github.com/facebook/jest/pull/3805`))
* Fix jest-circus ([#4290](`https://github.com/facebook/jest/pull/4290`))
* Fix lint warning in master
([#4132](`https://github.com/facebook/jest/pull/4132`))
* Fix linting ([#3946](`https://github.com/facebook/jest/pull/3946`))
* fix merge conflict ([#4144](`https://github.com/facebook/jest/pull/4144`))
* Fix minor typo ([#3729](`https://github.com/facebook/jest/pull/3729`))
* fix missing console.log messages
([#3895](`https://github.com/facebook/jest/pull/3895`))
* fix mock return value ([#3933](`https://github.com/facebook/jest/pull/3933`))
* Fix mocking for modules with folders on windows
([#4238](`https://github.com/facebook/jest/pull/4238`))
* Fix NODE_PATH resolving for relative paths
([#3616](`https://github.com/facebook/jest/pull/3616`))
* Fix options.moduleNameMapper override order with preset
([#3565](`https://github.com/facebook/jest/pull/3565`)
([#3689](`https://github.com/facebook/jest/pull/3689`))
* Fix React PropTypes warning in tests for Immutable plugin
([#4412](`https://github.com/facebook/jest/pull/4412`))
* Fix regression in mockReturnValueOnce
([#3857](`https://github.com/facebook/jest/pull/3857`))
* Fix sample code of mock class constructors
([#4115](`https://github.com/facebook/jest/pull/4115`))
* Fix setup-test-framework-test
([#3773](`https://github.com/facebook/jest/pull/3773`))
* fix typescript jest test crash
([#4363](`https://github.com/facebook/jest/pull/4363`))
* Fix watch mode ([#4084](`https://github.com/facebook/jest/pull/4084`))
* Fix Watchman on windows ([#4018](`https://github.com/facebook/jest/pull/4018`))
* Fix(babel): Handle ignored files in babel v7
([#4393](`https://github.com/facebook/jest/pull/4393`))
* Fix(babel): Support upcoming beta
([#4403](`https://github.com/facebook/jest/pull/4403`))
* Fixed object matcher ([#3799](`https://github.com/facebook/jest/pull/3799`))
* Fixes #3820 use extractExpectedAssertionsErrors in jasmine setup
* Flow upgrade ([#4355](`https://github.com/facebook/jest/pull/4355`))
* Force message in matchers to always be a function
([#3972](`https://github.com/facebook/jest/pull/3972`))
* Format `describe` and use `test` instead of `it` alias
([#3792](`https://github.com/facebook/jest/pull/3792`))
* global_config.js for multi-project runner
([#4023](`https://github.com/facebook/jest/pull/4023`))
* Handle async errors ([#4016](`https://github.com/facebook/jest/pull/4016`))
* Hard-fail if hasteImpl is throwing an error during initialization.
([#3812](`https://github.com/facebook/jest/pull/3812`))
* Ignore import type for extract_requires
([#4079](`https://github.com/facebook/jest/pull/4079`))
* Ignore indentation of data structures in jest-diff
([#3429](`https://github.com/facebook/jest/pull/3429`))
* Implement 'jest.requireMock'
([#4292](`https://github.com/facebook/jest/pull/4292`))
* Improve Jest phabricator plugin
([#4195](`https://github.com/facebook/jest/pull/4195`))
* Improve Seq and remove newline from non-min empty in Immutable plugin
([#4241](`https://github.com/facebook/jest/pull/4241`))
* Improved the jest reporter with snapshot info per test.
([#3660](`https://github.com/facebook/jest/pull/3660`))
* Include fullName in formattedAssertion
([#4273](`https://github.com/facebook/jest/pull/4273`))
* Integrated with Yarn workspaces
([#3906](`https://github.com/facebook/jest/pull/3906`))
* jest --all ([#4020](`https://github.com/facebook/jest/pull/4020`))
* jest-circus test failures
([#3770](`https://github.com/facebook/jest/pull/3770`))
* jest-circus Timeouts ([#3760](`https://github.com/facebook/jest/pull/3760`))
* jest-haste-map: add test case for broken handling of ignore pattern
([#4047](`https://github.com/facebook/jest/pull/4047`))
* jest-haste-map: add test+fix for broken platform module support
([#3885](`https://github.com/facebook/jest/pull/3885`))
* jest-haste-map: deprecate functional ignorePattern and use it in cache key
([#4063](`https://github.com/facebook/jest/pull/4063`))
* jest-haste-map: mock 'fs' with more idiomatic jest.mock()
([#4046](`https://github.com/facebook/jest/pull/4046`))
* jest-haste-map: only file IO errors should be silently ignored
([#3816](`https://github.com/facebook/jest/pull/3816`))
* jest-haste-map: throw when trying to get a duplicated module
([#3976](`https://github.com/facebook/jest/pull/3976`))
* jest-haste-map: watchman crawler: normalize paths
([#3887](`https://github.com/facebook/jest/pull/3887`))
* jest-runtime: atomic cache write, and check validity of data
([#4088](`https://github.com/facebook/jest/pull/4088`))
* Join lines with newline in jest-diff
([#4314](`https://github.com/facebook/jest/pull/4314`))
* Keep ARGV only in CLI files
([#4012](`https://github.com/facebook/jest/pull/4012`))
* let transformers adjust cache key based on mapCoverage
([#4187](`https://github.com/facebook/jest/pull/4187`))
* Lift requires ([#3780](`https://github.com/facebook/jest/pull/3780`))
* Log stack when reporting errors in jest-runtime
([#3833](`https://github.com/facebook/jest/pull/3833`))
* Make --listTests return a new line separated list when not using --json
([#4229](`https://github.com/facebook/jest/pull/4229`))
* Make build script printing small-terminals-friendly
([#3892](`https://github.com/facebook/jest/pull/3892`))
* Make error messages more explicit for toBeCalledWith assertions
([#3913](`https://github.com/facebook/jest/pull/3913`))
* Make jest-matcher-utils use ESM exports
([#4342](`https://github.com/facebook/jest/pull/4342`))
* Make jest-runner a standalone package.
([#4236](`https://github.com/facebook/jest/pull/4236`))
* Make Jest’s Test Runner configurable.
([#4240](`https://github.com/facebook/jest/pull/4240`))
* Make listTests always print to console.log
([#4391](`https://github.com/facebook/jest/pull/4391`))
* Make providesModuleNodeModules ignore nested node_modules directories
* Make sure function mocks match original arity
([#4170](`https://github.com/facebook/jest/pull/4170`))
* Make sure runAllTimers also clears all ticks
([#3915](`https://github.com/facebook/jest/pull/3915`))
* Make toBe matcher error message more helpful for objects and arrays
([#4277](`https://github.com/facebook/jest/pull/4277`))
* Make useRealTimers play well with timers: fake
([#3858](`https://github.com/facebook/jest/pull/3858`))
* Move getType from jest-matcher-utils to separate package
([#3559](`https://github.com/facebook/jest/pull/3559`))
* Multiroot jest-change-files
([#3969](`https://github.com/facebook/jest/pull/3969`))
* Output created snapshot when using --ci option
([#3693](`https://github.com/facebook/jest/pull/3693`))
* Point out you can use matchers in .toMatchObject
([#3796](`https://github.com/facebook/jest/pull/3796`))
* Prevent babelrc package import failure on relative current path
([#3723](`https://github.com/facebook/jest/pull/3723`))
* Print RDP details for windows builds
([#4017](`https://github.com/facebook/jest/pull/4017`))
* Provide better error checking for transformed content
([#3807](`https://github.com/facebook/jest/pull/3807`))
* Provide printText and printComment in markup.js for HTMLElement plugin
([#4344](`https://github.com/facebook/jest/pull/4344`))
* Provide regex visualization for testRegex
([#3758](`https://github.com/facebook/jest/pull/3758`))
* Refactor CLI ([#3862](`https://github.com/facebook/jest/pull/3862`))
* Refactor names and delimiters of complex values in pretty-format
([#3986](`https://github.com/facebook/jest/pull/3986`))
* Replace concat(Immutable) with Immutable as item of plugins array
([#4207](`https://github.com/facebook/jest/pull/4207`))
* Replace Jasmine with jest-circus
([#3668](`https://github.com/facebook/jest/pull/3668`))
* Replace match with test and omit redundant String conversion
([#4311](`https://github.com/facebook/jest/pull/4311`))
* Replace print with serialize in AsymmetricMatcher plugin
([#4173](`https://github.com/facebook/jest/pull/4173`))
* Replace print with serialize in ConvertAnsi plugin
([#4225](`https://github.com/facebook/jest/pull/4225`))
* Replace print with serialize in HTMLElement plugin
([#4215](`https://github.com/facebook/jest/pull/4215`))
* Replace print with serialize in Immutable plugins
([#4189](`https://github.com/facebook/jest/pull/4189`))
* Replace unchanging args with one config arg within pretty-format
([#4076](`https://github.com/facebook/jest/pull/4076`))
* Return UNDEFINED for undefined type in ReactElement plugin
([#4360](`https://github.com/facebook/jest/pull/4360`))
* Rewrite some read bumps in pretty-format
([#4093](`https://github.com/facebook/jest/pull/4093`))
* Run update method before installing JRE on Circle
([#4318](`https://github.com/facebook/jest/pull/4318`))
* Separated the snapshot summary creation from the printing to improve
testability. ([#4373](`https://github.com/facebook/jest/pull/4373`))
* Set coverageDirectory during normalize phase
([#3966](`https://github.com/facebook/jest/pull/3966`))
* Setup custom reporters after default reporters
([#4053](`https://github.com/facebook/jest/pull/4053`))
* Setup for Circle 2 ([#4149](`https://github.com/facebook/jest/pull/4149`))
* Simplify readme ([#3790](`https://github.com/facebook/jest/pull/3790`))
* Simplify snapshots definition
([#3791](`https://github.com/facebook/jest/pull/3791`))
* skipNodeResolution config option
([#3987](`https://github.com/facebook/jest/pull/3987`))
* Small fixes to toHaveProperty docs
([#3878](`https://github.com/facebook/jest/pull/3878`))
* Sort attributes by name in HTMLElement plugin
([#3783](`https://github.com/facebook/jest/pull/3783`))
* Specify watchPathIgnorePatterns will only be available in Jest 21+
([#4398](`https://github.com/facebook/jest/pull/4398`))
* Split TestRunner off of TestScheduler
([#4233](`https://github.com/facebook/jest/pull/4233`))
* Strict and explicit config resolution logic
([#4122](`https://github.com/facebook/jest/pull/4122`))
* Support maxDepth option in React plugins
([#4208](`https://github.com/facebook/jest/pull/4208`))
* Support SVG elements in HTMLElement plugin
([#4335](`https://github.com/facebook/jest/pull/4335`))
* Test empty Immutable collections with {min: false} option
([#4121](`https://github.com/facebook/jest/pull/4121`))
* test to debug travis failure in master
([#4145](`https://github.com/facebook/jest/pull/4145`))
* testPathPattern message test
([#4006](`https://github.com/facebook/jest/pull/4006`))
* Throw Error When Using Nested It Specs
([#4039](`https://github.com/facebook/jest/pull/4039`))
* Throw when moduleNameMapper points to inexistent module
([#3567](`https://github.com/facebook/jest/pull/3567`))
* Unified 'no tests found' message for non-verbose MPR
([#4354](`https://github.com/facebook/jest/pull/4354`))
* Update migration guide with jest-codemods transformers
([#4306](`https://github.com/facebook/jest/pull/4306`))
* Use "inputSourceMap" for coverage re-mapping.
([#4009](`https://github.com/facebook/jest/pull/4009`))
* Use "verbose" no test found message when there is only one project
([#4378](`https://github.com/facebook/jest/pull/4378`))
* Use babel transform to inline all requires
([#4340](`https://github.com/facebook/jest/pull/4340`))
* Use eslint plugins to run prettier
([#3971](`https://github.com/facebook/jest/pull/3971`))
* Use iterableEquality in spy matchers
([#3651](`https://github.com/facebook/jest/pull/3651`))
* Use modern HTML5
([#3937](`https://github.com/facebook/jest/pull/3937`))
* Wrap `Error.captureStackTrace` in a try
([#4035](`https://github.com/facebook/jest/pull/4035`))
---
### [`v21.0.1`](https://github.com/facebook/jest/blob/master/CHANGELOG.md#jest-2101)
* Remove obsolete error ([#4417](`https://github.com/facebook/jest/pull/4417`))
---
### [`v21.0.2`](https://github.com/facebook/jest/blob/master/CHANGELOG.md#jest-2102)
* Take precedence of NODE_PATH when resolving node_modules directories
([#4453](`https://github.com/facebook/jest/pull/4453`))
* Fix race condition with --coverage and babel-jest identical file contents edge
case ([#4432](`https://github.com/facebook/jest/pull/4432`))
* Add extra parameter `--runTestsByPath`.
([#4411](`https://github.com/facebook/jest/pull/4411`))
* Upgrade all outdated deps
([#4425](`https://github.com/facebook/jest/pull/4425`))
---
### [`v21.1.0`](https://github.com/facebook/jest/blob/master/CHANGELOG.md#jest-2110)
* (minor) Use ES module exports
([#4454](`https://github.com/facebook/jest/pull/4454`))
* Allow chaining mockClear and mockReset
([#4475](`https://github.com/facebook/jest/pull/4475`))
* Call jest-diff and pretty-format more precisely in toHaveProperty matcher
([#4445](`https://github.com/facebook/jest/pull/4445`))
* Expose restoreAllMocks to object
([#4463](`https://github.com/facebook/jest/pull/4463`))
* Fix function name cleaning when making mock fn
([#4464](`https://github.com/facebook/jest/pull/4464`))
* Fix Map/Set equality checker
([#4404](`https://github.com/facebook/jest/pull/4404`))
* Make FUNCTION_NAME_RESERVED_PATTERN stateless
([#4466](`https://github.com/facebook/jest/pull/4466`))
---
### [`v21.2.0`](https://github.com/facebook/jest/blob/master/CHANGELOG.md#jest-2120)
* 🃏 Change license from BSD+Patents to MIT.
* Allow eslint-plugin to recognize more disabled tests
([#4533](`https://github.com/facebook/jest/pull/4533`))
* Add babel-plugin for object spread syntax to babel-preset-jest
([#4519](`https://github.com/facebook/jest/pull/4519`))
* Display outer element and trailing newline consistently in jest-diff
([#4520](`https://github.com/facebook/jest/pull/4520`))
* Do not modify stack trace of JestAssertionError
([#4516](`https://github.com/facebook/jest/pull/4516`))
* Print errors after test structure in verbose mode
([#4504](`https://github.com/facebook/jest/pull/4504`))
* Fix `--silent --verbose` problem
([#4505](`https://github.com/facebook/jest/pull/4505`))
* Fix: Reset local state of assertions when using hasAssertions
([#4498](`https://github.com/facebook/jest/pull/4498`))
* jest-resolve: Prevent default resolver failure when potential resolution
directory does not exist ([#4483](`https://github.com/facebook/jest/pull/4483`))
---
### [`v21.2.1`](https://github.com/facebook/jest/blob/master/CHANGELOG.md#jest-2121)
* Fix watchAll not running tests on save
([#4550](`https://github.com/facebook/jest/pull/4550`))
* Add missing escape sequences to ConvertAnsi plugin
([#4544](`https://github.com/facebook/jest/pull/4544`))
---
### [`v22.0.0`](https://github.com/facebook/jest/blob/master/CHANGELOG.md#jest-2200)
##### Fixes
* `[jest-resolve]` Use `module.builtinModules` as `BUILTIN_MODULES` when it
exists
* `[jest-worker]` Remove `debug` and `inspect` flags from the arguments sent to
the child ([#5068](`https://github.com/facebook/jest/pull/5068`))
* `[jest-config]` Use all `--testPathPattern` and `` args in
`testPathPattern` ([#5066](`https://github.com/facebook/jest/pull/5066`))
* `[jest-cli]` Do not support `--watch` inside non-version-controlled
environments ([#5060](`https://github.com/facebook/jest/pull/5060`))
* `[jest-config]` Escape Windows path separator in testPathPattern CLI arguments
([#5054](`https://github.com/facebook/jest/pull/5054`)
* `[jest-jasmine]` Register sourcemaps as node environment to improve
performance with jsdom ([#5045](`https://github.com/facebook/jest/pull/5045`))
* `[pretty-format]` Do not call toJSON recursively
([#5044](`https://github.com/facebook/jest/pull/5044`))
* `[pretty-format]` Fix errors when identity-obj-proxy mocks CSS Modules
([#4935](`https://github.com/facebook/jest/pull/4935`))
* `[babel-jest]` Fix support for namespaced babel version 7
([#4918](`https://github.com/facebook/jest/pull/4918`))
* `[expect]` fix .toThrow for promises
([#4884](`https://github.com/facebook/jest/pull/4884`))
* `[jest-docblock]` pragmas should preserve urls
([#4837](`https://github.com/facebook/jest/pull/4629`))
* `[jest-cli]` Check if `npm_lifecycle_script` calls Jest directly
([#4629](`https://github.com/facebook/jest/pull/4629`))
* `[jest-cli]` Fix --showConfig to show all configs
([#4494](`https://github.com/facebook/jest/pull/4494`))
* `[jest-cli]` Throw if `maxWorkers` doesn't have a value
([#4591](`https://github.com/facebook/jest/pull/4591`))
* `[jest-cli]` Use `fs.realpathSync.native` if available
([#5031](`https://github.com/facebook/jest/pull/5031`))
* `[jest-config]` Fix `--passWithNoTests`
([#4639](`https://github.com/facebook/jest/pull/4639`))
* `[jest-config]` Support `rootDir` tag in testEnvironment
([#4579](`https://github.com/facebook/jest/pull/4579`))
* `[jest-editor-support]` Fix `--showConfig` to support jest 20 and jest 21
([#4575](`https://github.com/facebook/jest/pull/4575`))
* `[jest-editor-support]` Fix editor support test for node 4
([#4640](`https://github.com/facebook/jest/pull/4640`))
* `[jest-mock]` Support mocking constructor in `mockImplementationOnce`
([#4599](`https://github.com/facebook/jest/pull/4599`))
* `[jest-runtime]` Fix manual user mocks not working with custom resolver
([#4489](`https://github.com/facebook/jest/pull/4489`))
* `[jest-util]` Fix `runOnlyPendingTimers` for `setTimeout` inside
`setImmediate` ([#4608](`https://github.com/facebook/jest/pull/4608`))
* `[jest-message-util]` Always remove node internals from stacktraces
([#4695](`https://github.com/facebook/jest/pull/4695`))
* `[jest-resolve]` changes method of determining builtin modules to include
missing builtins ([#4740](`https://github.com/facebook/jest/pull/4740`))
* `[pretty-format]` Prevent error in pretty-format for window in jsdom test env
([#4750](`https://github.com/facebook/jest/pull/4750`))
* `[jest-resolve]` Preserve module identity for symlinks
([#4761](`https://github.com/facebook/jest/pull/4761`))
* `[jest-config]` Include error message for `preset` json
([#4766](`https://github.com/facebook/jest/pull/4766`))
* `[pretty-format]` Throw `PrettyFormatPluginError` if a plugin halts with an
exception ([#4787](`https://github.com/facebook/jest/pull/4787`))
* `[expect]` Keep the stack trace unchanged when `PrettyFormatPluginError` is
thrown by pretty-format ([#4787](`https://github.com/facebook/jest/pull/4787`))
* `[jest-environment-jsdom]` Fix asynchronous test will fail due to timeout
issue. ([#4669](`https://github.com/facebook/jest/pull/4669`))
* `[jest-cli]` Fix `--onlyChanged` path case sensitivity on Windows platform
([#4730](`https://github.com/facebook/jest/pull/4730`))
* `[jest-runtime]` Use realpath to match transformers
([#5000](`https://github.com/facebook/jest/pull/5000`))
* `[expect]` [**BREAKING**] Replace identity equality with Object.is in toBe
matcher ([#4917](`https://github.com/facebook/jest/pull/4917`))
##### Features
* `[jest-message-util]` Add codeframe to test assertion failures
([#5087](`https://github.com/facebook/jest/pull/5087`))
* `[jest-config]` Add Global Setup/Teardown options
([#4716](`https://github.com/facebook/jest/pull/4716`))
* `[jest-config]` Add `testEnvironmentOptions` to apply to jsdom options or node
context. ([#5003](`https://github.com/facebook/jest/pull/5003`))
* `[jest-jasmine2]` Update Timeout error message to `jest.timeout` and display
current timeout value ([#4990](`https://github.com/facebook/jest/pull/4990`))
* `[jest-runner]` Enable experimental detection of leaked contexts
([#4895](`https://github.com/facebook/jest/pull/4895`))
* `[jest-cli]` Add combined coverage threshold for directories.
([#4885](`https://github.com/facebook/jest/pull/4885`))
* `[jest-mock]` Add `timestamps` to mock state.
([#4866](`https://github.com/facebook/jest/pull/4866`))
* `[eslint-plugin-jest]` Add `prefer-to-have-length` lint rule.
([#4771](`https://github.com/facebook/jest/pull/4771`))
* `[jest-environment-jsdom]` [**BREAKING**] Upgrade to JSDOM@11
([#4770](`https://github.com/facebook/jest/pull/4770`))
* `[jest-environment-*]` [**BREAKING**] Add Async Test Environment APIs, dispose
is now teardown ([#4506](`https://github.com/facebook/jest/pull/4506`))
* `[jest-cli]` Add an option to clear the cache
([#4430](`https://github.com/facebook/jest/pull/4430`))
* `[babel-plugin-jest-hoist]` Improve error message, that the second argument of
`jest.mock` must be an inline function
([#4593](`https://github.com/facebook/jest/pull/4593`))
* `[jest-snapshot]` [**BREAKING**] Concatenate name of test and snapshot
([#4460](`https://github.com/facebook/jest/pull/4460`))
* `[jest-cli]` [**BREAKING**] Fail if no tests are found
([#3672](`https://github.com/facebook/jest/pull/3672`))
* `[jest-diff]` Highlight only last of odd length leading spaces
([#4558](`https://github.com/facebook/jest/pull/4558`))
* `[jest-docblock]` Add `docblock.print()`
([#4517](`https://github.com/facebook/jest/pull/4517`))
* `[jest-docblock]` Add `strip`
([#4571](`https://github.com/facebook/jest/pull/4571`))
* `[jest-docblock]` Preserve leading whitespace in docblock comments
([#4576](`https://github.com/facebook/jest/pull/4576`))
* `[jest-docblock]` remove leading newlines from `parswWithComments().comments`
([#4610](`https://github.com/facebook/jest/pull/4610`))
* `[jest-editor-support]` Add Snapshots metadata
([#4570](`https://github.com/facebook/jest/pull/4570`))
* `[jest-editor-support]` Adds an 'any' to the typedef for
`updateFileWithJestStatus`
([#4636](`https://github.com/facebook/jest/pull/4636`))
* `[jest-editor-support]` Better monorepo support
([#4572](`https://github.com/facebook/jest/pull/4572`))
* `[jest-environment-jsdom]` Add simple rAF polyfill in jsdom environment to
work with React 16 ([#4568](`https://github.com/facebook/jest/pull/4568`))
* `[jest-environment-node]` Implement node Timer api
([#4622](`https://github.com/facebook/jest/pull/4622`))
* `[jest-jasmine2]` Add testPath to reporter callbacks
([#4594](`https://github.com/facebook/jest/pull/4594`))
* `[jest-mock]` Added support for naming mocked functions with
`.mockName(value)` and `.mockGetName()`
([#4586](`https://github.com/facebook/jest/pull/4586`))
* `[jest-runtime]` Add `module.loaded`, and make `module.require` not enumerable
([#4623](`https://github.com/facebook/jest/pull/4623`))
* `[jest-runtime]` Add `module.parent`
([#4614](`https://github.com/facebook/jest/pull/4614`))
* `[jest-runtime]` Support sourcemaps in transformers
([#3458](`https://github.com/facebook/jest/pull/3458`))
* `[jest-snapshot]` [**BREAKING**] Add a serializer for `jest.fn` to allow a
snapshot of a jest mock ([#4668](`https://github.com/facebook/jest/pull/4668`))
* `[jest-worker]` Initial version of parallel worker abstraction, say hello!
([#4497](`https://github.com/facebook/jest/pull/4497`))
* `[jest-jasmine2]` Add `testLocationInResults` flag to add location information
per spec to test results ([#4782](`https://github.com/facebook/jest/pull/4782`))
* `[jest-environment-jsdom]` Update JSOM to 11.4, which includes built-in
support for `requestAnimationFrame`
([#4919](`https://github.com/facebook/jest/pull/4919`))
* `[jest-cli]` Hide watch usage output when running on non-interactive
environments ([#4958](`https://github.com/facebook/jest/pull/4958`))
* `[jest-snapshot]` Promises support for `toThrowErrorMatchingSnapshot`
([#4946](`https://github.com/facebook/jest/pull/4946`))
* `[jest-cli]` Explain which snapshots are obsolete
([#5005](`https://github.com/facebook/jest/pull/5005`))
##### Chore & Maintenance
* `[docs]` Add guide of using with puppeteer
([#5093](`https://github.com/facebook/jest/pull/5093`))
* `[jest-util]` `jest-util` should not depend on `jest-mock`
([#4992](`https://github.com/facebook/jest/pull/4992`))
* `[*]` [**BREAKING**] Drop support for Node.js version 4
([#4769](`https://github.com/facebook/jest/pull/4769`))
* `[docs]` Wrap code comments at 80 characters
([#4781](`https://github.com/facebook/jest/pull/4781`))
* `[eslint-plugin-jest]` Removed from the Jest core repo, and moved to
https://github.com/jest-community/eslint-plugin-jest
([#4867](`https://github.com/facebook/jest/pull/4867`))
* `[babel-jest]` Explicitly bump istanbul to newer versions
([#4616](`https://github.com/facebook/jest/pull/4616`))
* `[expect]` Upgrade mocha and rollup for browser testing
([#4642](`https://github.com/facebook/jest/pull/4642`))
* `[docs]` Add info about `coveragePathIgnorePatterns`
([#4602](`https://github.com/facebook/jest/pull/4602`))
* `[docs]` Add Vuejs series of testing with Jest
([#4648](`https://github.com/facebook/jest/pull/4648`))
* `[docs]` Mention about optional `done` argument in test function
([#4556](`https://github.com/facebook/jest/pull/4556`))
* `[jest-cli]` Bump node-notifier version
([#4609](`https://github.com/facebook/jest/pull/4609`))
* `[jest-diff]` Simplify highlight for leading and trailing spaces
([#4553](`https://github.com/facebook/jest/pull/4553`))
* `[jest-get-type]` Add support for date
([#4621](`https://github.com/facebook/jest/pull/4621`))
* `[jest-matcher-utils]` Call `chalk.inverse` for trailing spaces
([#4578](`https://github.com/facebook/jest/pull/4578`))
* `[jest-runtime]` Add `.advanceTimersByTime`; keep `.runTimersToTime()` as an
alias.
* `[docs]` Include missing dependency in TestEnvironment sample code
* `[docs]` Add clarification for hook execution order
* `[docs]` Update `expect.anything()` sample code
([#5007](`https://github.com/facebook/jest/pull/5007`))
---
### [`v22.0.1`](https://github.com/facebook/jest/blob/master/CHANGELOG.md#jest-2201)
##### Fixes
* `[jest-runtime]` fix error for test files providing coverage.
([#5117](`https://github.com/facebook/jest/pull/5117`))
##### Features
* `[jest-config]` Add `forceCoverageMatch` to allow collecting coverage from
ignored files. ([#5081](`https://github.com/facebook/jest/pull/5081`))
---
### [`v22.0.2`](https://github.com/facebook/jest/blob/master/CHANGELOG.md#jest-2202--2203)
##### Chore & Maintenance
* `[*]` Tweaks to better support Node 4
([#5134](`https://github.com/facebook/jest/pull/5134`))
---
### [`v22.0.3`](https://github.com/facebook/jest/blob/master/CHANGELOG.md#jest-2202--2203)
##### Chore & Maintenance
* `[*]` Tweaks to better support Node 4
([#5134](`https://github.com/facebook/jest/pull/5134`))
---
### [`v22.0.4`](https://github.com/facebook/jest/blob/master/CHANGELOG.md#jest-2204)
##### Fixes
* `[jest-cli]` New line before quitting watch mode.
([#5158](`https://github.com/facebook/jest/pull/5158`))
##### Features
* `[babel-jest]` moduleFileExtensions not passed to babel transformer.
([#5110](`https://github.com/facebook/jest/pull/5110`))
##### Chore & Maintenance
* `[*]` Tweaks to better support Node 4
([#5142](`https://github.com/facebook/jest/pull/5142`))
---
### [`v22.0.5`](https://github.com/facebook/jest/blob/master/CHANGELOG.md#jest-2205)
##### Fixes
* `[jest-leak-detector]` Removed the reference to `weak`. Now, parent projects
must install it by hand for the module to work.
* `[expect]` Fail test when the types of `stringContaining` and `stringMatching`
matchers do not match. ([#5069](`https://github.com/facebook/jest/pull/5069`))
* `[jest-cli]` Treat dumb terminals as noninteractive
([#5237](`https://github.com/facebook/jest/pull/5237`))
* `[jest-cli]` `jest --onlyChanged --changedFilesWithAncestor` now also works
with git. ([#5189](`https://github.com/facebook/jest/pull/5189`))
* `[jest-config]` fix unexpected condition to avoid infinite recursion in
Windows platform. ([#5161](`https://github.com/facebook/jest/pull/5161`))
* `[jest-config]` Escape parentheses and other glob characters in `rootDir`
before interpolating with `testMatch`.
([#4838](`https://github.com/facebook/jest/issues/4838`))
* `[jest-regex-util]` Fix breaking change in `--testPathPattern`
([#5230](`https://github.com/facebook/jest/pull/5230`))
* `[expect]` Do not override `Error` stack (with `Error.captureStackTrace`) for
custom matchers. ([#5162](`https://github.com/facebook/jest/pull/5162`))
* `[pretty-format]` Pretty format for DOMStringMap and NamedNodeMap
([#5233](`https://github.com/facebook/jest/pull/5233`))
* `[jest-cli]` Use a better console-clearing string on Windows
([#5251](`https://github.com/facebook/jest/pull/5251`))
##### Features
* `[jest-jasmine]` Allowed classes and functions as `describe` names.
([#5154](`https://github.com/facebook/jest/pull/5154`))
* `[jest-jasmine2]` Support generator functions as specs.
([#5166](`https://github.com/facebook/jest/pull/5166`))
* `[jest-jasmine2]` Allow `spyOn` with getters and setters.
([#5107](`https://github.com/facebook/jest/pull/5107`))
* `[jest-config]` Allow configuration objects inside `projects` array
([#5176](`https://github.com/facebook/jest/pull/5176`))
* `[expect]` Add support to `.toHaveProperty` matcher to accept the keyPath
argument as an array of properties/indices.
([#5220](`https://github.com/facebook/jest/pull/5220`))
* `[docs]` Add documentation for .toHaveProperty matcher to accept the keyPath
argument as an array of properties/indices.
([#5220](`https://github.com/facebook/jest/pull/5220`))
* `[jest-runner]` test environments are now passed a new `options` parameter.
Currently this only has the `console` which is the test console that Jest will
expose to tests. ([#5223](`https://github.com/facebook/jest/issues/5223`))
* `[jest-environment-jsdom]` pass the `options.console` to a custom instance of
`virtualConsole` so jsdom is using the same console as the test.
([#5223](`https://github.com/facebook/jest/issues/5223`))
##### Chore & Maintenance
* `[docs]` Describe the order of execution of describe and test blocks.
([#5217](`https://github.com/facebook/jest/pull/5217`),
[#5238](`https://github.com/facebook/jest/pull/5238`))
* `[docs]` Add a note on `moduleNameMapper` ordering.
([#5249](`https://github.com/facebook/jest/pull/5249`))
---
### [`v22.0.6`](https://github.com/facebook/jest/blob/master/CHANGELOG.md#jest-2206)
##### Fixes
* `[jest-jasmine2]` Fix memory leak in snapshot reporting
([#5279](`https://github.com/facebook/jest/pull/5279`))
* `[jest-config]` Fix breaking change in `--testPathPattern`
([#5269](`https://github.com/facebook/jest/pull/5269`))
* `[docs]` Document caveat with mocks, Enzyme, snapshots and React 16
([#5258](`https://github.com/facebook/jest/issues/5258`))
---
### [`v22.1.0`](https://github.com/facebook/jest/blob/master/CHANGELOG.md#jest-2210)
##### 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](`https://github.com/facebook/jest/pull/3831`))
##### Fixes
* `[jest-cli]` Use `import-local` to support global Jest installations.
([#5304](`https://github.com/facebook/jest/pull/5304`))
* `[jest-runner]` Fix memory leak in coverage reporting
([#5289](`https://github.com/facebook/jest/pull/5289`))
* `[docs]` Update mention of the minimal version of node supported
([#4947](`https://github.com/facebook/jest/issues/4947`))
* `[jest-cli]` Fix missing newline in console message
([#5308](`https://github.com/facebook/jest/pull/5308`))
* `[jest-cli]` `--lastCommit` and `--changedFilesWithAncestor` now take effect
even when `--onlyChanged` is not specified.
([#5307](`https://github.com/facebook/jest/pull/5307`))
##### Chore & Maintenance
* `[filenames]` Standardize folder names under `integration-tests/`
([#5298](`https://github.com/facebook/jest/pull/5298`))
---
### [`v22.1.1`](https://github.com/facebook/jest/blob/master/CHANGELOG.md#jest-2211)
##### Fixes
* `[*]` Move from "process.exit" to "exit.
([#5313](`https://github.com/facebook/jest/pull/5313`))
---
### [`v22.1.2`](https://github.com/facebook/jest/blob/master/CHANGELOG.md#jest-2212)
##### Fixes
* `[jest-cli]` Check if the file belongs to the checked project before adding it
to the list ([#5335](`https://github.com/facebook/jest/pull/5335`))
* `[jest-cli]` Fix `EISDIR` when a directory is passed as an argument to `jest`.
([#5317](`https://github.com/facebook/jest/pull/5317`))
* `[jest-config]` Added restoreMocks config option.
([#5327](`https://github.com/facebook/jest/pull/5327`))
---
### [`v22.1.3`](https://github.com/facebook/jest/blob/master/CHANGELOG.md#jest-2213)
##### Fixes
* `[jest-cli]` Check if the file belongs to the checked project before adding it
to the list, also checking that the file name is not explicitly blacklisted
([#5341](`https://github.com/facebook/jest/pull/5341`))
* `[jest-editor-support]` Add option to spawn command in shell
([#5340](`https://github.com/facebook/jest/pull/5340`))
---
### [`v22.1.4`](https://github.com/facebook/jest/blob/master/CHANGELOG.md#jest-2214)
##### Fixes
* `[jest-util]` Add "debug" method to "console" implementations
([#5350](`https://github.com/facebook/jest/pull/5350`))
* `[jest-resolve]` Add condition to avoid infinite loop when node module package
main is ".". ([#5344)](`https://github.com/facebook/jest/pull/5344`)
##### Features
* `[jest-cli]` `--changedSince`: allow selectively running tests for code
changed since arbitrary revisions.
([#5312](`https://github.com/facebook/jest/pull/5312`))
---
### [`v22.2.0`](https://github.com/facebook/jest/blob/master/CHANGELOG.md#jest-2220)
##### Features
* `[jest-runner]` Move test summary to after coverage report
([#4512](`https://github.com/facebook/jest/pull/4512`))
* `[jest-cli]` Added `--notifyMode` to specify when to be notified.
([#5125](`https://github.com/facebook/jest/pull/5125`))
* `[diff-sequences]` New package compares items in two sequences to find a
**longest common subsequence**.
([#5407](`https://github.com/facebook/jest/pull/5407`))
* `[jest-matcher-utils]` Add `comment` option to `matcherHint` function
([#5437](`https://github.com/facebook/jest/pull/5437`))
* `[jest-config]` Allow lastComit and changedFilesWithAncestor via JSON config
([#5476](`https://github.com/facebook/jest/pull/5476`))
* `[jest-util]` Add deletion to `process.env` as well
([#5466](`https://github.com/facebook/jest/pull/5466`))
* `[jest-util]` Add case-insensitive getters/setters to `process.env`
([#5465](`https://github.com/facebook/jest/pull/5465`))
* `[jest-mock]` Add util methods to create async functions.
([#5318](`https://github.com/facebook/jest/pull/5318`))
##### Fixes
* `[jest-cli]` Add trailing slash when checking root folder
([#5464](`https://github.com/facebook/jest/pull/5464`))
* `[jest-cli]` Hide interactive mode if there are no failed snapshot tests
([#5450](`https://github.com/facebook/jest/pull/5450`))
* `[babel-jest]` Remove retainLines from babel-jest
([#5439](`https://github.com/facebook/jest/pull/5439`))
* `[jest-cli]` Glob patterns ignore non-`require`-able files (e.g. `README.md`)
([#5199](`https://github.com/facebook/jest/issues/5199`))
* `[jest-mock]` Add backticks support (\`\`) to `mock` a certain package via the
`__mocks__` folder. ([#5426](`https://github.com/facebook/jest/pull/5426`))
* `[jest-message-util]` Prevent an `ENOENT` crash when the test file contained a
malformed source-map. ([#5405](`https://github.com/facebook/jest/pull/5405`)).
* `[jest]` Add `import-local` to `jest` package.
([#5353](`https://github.com/facebook/jest/pull/5353`))
* `[expect]` Support class instances in `.toHaveProperty()` and `.toMatchObject`
matcher. ([#5367](`https://github.com/facebook/jest/pull/5367`))
* `[jest-cli]` Fix npm update command for snapshot summary.
([#5376](`https://github.com/facebook/jest/pull/5376`),
[5389](`https://github.com/facebook/jest/pull/5389`/))
* `[expect]` Make `rejects` and `resolves` synchronously validate its argument.
([#5364](`https://github.com/facebook/jest/pull/5364`))
* `[docs]` Add tutorial page for ES6 class mocks.
([#5383](`https://github.com/facebook/jest/pull/5383`))
* `[jest-resolve]` Search required modules in node_modules and then in custom
paths. ([#5403](`https://github.com/facebook/jest/pull/5403`))
* `[jest-resolve]` Get builtin modules from node core.
([#5411](`https://github.com/facebook/jest/pull/5411`))
* `[jest-resolve]` Detect and preserve absolute paths in `moduleDirectories`. Do
not generate additional (invalid) paths by prepending each ancestor of `cwd`
to the absolute path. Additionally, this fixes functionality in Windows OS.
([#5398](`https://github.com/facebook/jest/pull/5398`))
##### Chore & Maintenance
* `[jest-util]` Implement watch plugins
([#5399](`https://github.com/facebook/jest/pull/5399`))
---
### [`v22.2.1`](https://github.com/facebook/jest/blob/master/CHANGELOG.md#jest-2221)
##### Fixes
* `[jest-config]` "all" takes precedence over "lastCommit"
([#5486](`https://github.com/facebook/jest/pull/5486`))
---
### [`v22.2.2`](https://github.com/facebook/jest/blob/master/CHANGELOG.md#jest-2222)
##### Fixes
* `[babel-jest]` Revert "Remove retainLines from babel-jest"
([#5496](`https://github.com/facebook/jest/pull/5496`))
* `[jest-docblock]` Support multiple of the same `@pragma`.
([#5154](`https://github.com/facebook/jest/pull/5502`))
##### Features
* `[jest-worker]` Assign a unique id for each worker and pass it to the child
process. It will be available via `process.env.JEST_WORKER_ID`
([#5494](`https://github.com/facebook/jest/pull/5494`))
##### Chore & Maintenance
* `[filenames]` Standardize file names in root
([#5500](`https://github.com/facebook/jest/pull/5500`))
---
### [`v22.3.0`](https://github.com/facebook/jest/blob/master/CHANGELOG.md#jest-2230)
##### Fixes
* `[expect]` Add descriptive error message to CalledWith methods when missing
optional arguments ([#5547](`https://github.com/facebook/jest/pull/5547`))
* `[jest-cli]` Fix inability to quit watch mode while debugger is still attached
([#5029](`https://github.com/facebook/jest/pull/5029`))
* `[jest-haste-map]` Properly handle platform-specific file deletions
([#5534](`https://github.com/facebook/jest/pull/5534`))
##### Features
* `[jest-util]` Add the following methods to the "console" implementations:
`assert`, `count`, `countReset`, `dir`, `dirxml`, `group`, `groupCollapsed`,
`groupEnd`, `time`, `timeEnd`
([#5514](`https://github.com/facebook/jest/pull/5514`))
* `[docs]` Add documentation for interactive snapshot mode
([#5291](`https://github.com/facebook/jest/pull/5291`))
* `[jest-editor-support]` Add watchAll flag
([#5523](`https://github.com/facebook/jest/pull/5523`))
* `[jest-cli]` Support multiple glob patterns for `collectCoverageFrom`
([#5537](`https://github.com/facebook/jest/pull/5537`))
* `[docs]` Add versioned documentation to the website
([#5541](`https://github.com/facebook/jest/pull/5541`))
##### Chore & Maintenance
* `[jest-config]` Allow `` to be used with `collectCoverageFrom`
([#5524](`https://github.com/facebook/jest/pull/5524`))
* `[filenames]` Standardize files names in "integration-tests" folder
([#5513](`https://github.com/facebook/jest/pull/5513`))
---
### [`v22.4.0`](https://github.com/facebook/jest/blob/master/CHANGELOG.md#2240)
##### Fixes
* `[jest-haste-map]` Overhauls how Watchman crawler works fixing Windows
([#5615](`https://github.com/facebook/jest/pull/5615`))
* `[expect]` Allow matching of Errors against plain objects
([#5611](`https://github.com/facebook/jest/pull/5611`))
* `[jest-haste-map]` Do not read binary files in Haste, even when instructed to
do so ([#5612](`https://github.com/facebook/jest/pull/5612`))
* `[jest-cli]` Don't skip matchers for exact files
([#5582](`https://github.com/facebook/jest/pull/5582`))
* `[docs]` Update discord links
([#5586](`https://github.com/facebook/jest/pull/5586`))
* `[jest-runtime]` Align handling of testRegex on Windows between searching for
tests and instrumentation checks
([#5560](`https://github.com/facebook/jest/pull/5560`))
* `[jest-config]` Make it possible to merge `transform` option with preset
([#5505](`https://github.com/facebook/jest/pull/5505`))
* `[jest-util]` Fix `console.assert` behavior in custom & buffered consoles
([#5576](`https://github.com/facebook/jest/pull/5576`))
##### Features
* `[docs]` Add MongoDB guide
([#5571](`https://github.com/facebook/jest/pull/5571`))
* `[jest-runtime]` Deprecate mapCoverage option.
([#5177](`https://github.com/facebook/jest/pull/5177`))
* `[babel-jest]` Add option to return sourcemap from the transformer separately
from source. ([#5177](`https://github.com/facebook/jest/pull/5177`))
* `[jest-validate]` Add ability to log deprecation warnings for CLI flags.
([#5536](`https://github.com/facebook/jest/pull/5536`))
* `[jest-serializer]` Added new module for serializing. Works using V8 or JSON
([#5609](`https://github.com/facebook/jest/pull/5609`))
* `[docs]` Add a documentation note for project `displayName` configuration
([#5600](`https://github.com/facebook/jest/pull/5600`))
### Chore & Maintenance
* `[docs]` Update automatic mocks documentation
([#5630](`https://github.com/facebook/jest/pull/5630`))
---
### [`v22.4.1`](https://github.com/facebook/jest/blob/master/CHANGELOG.md#2241)
##### Fixes
* `[jest-haste-map]` Parallelize Watchman calls in crawler
([#5640](`https://github.com/facebook/jest/pull/5640`))
* `[jest-editor-support]` Update TypeScript definitions
([#5625](`https://github.com/facebook/jest/pull/5625`))
* `[babel-jest]` Remove `retainLines` argument to babel.
([#5594](`https://github.com/facebook/jest/pull/5594`))
##### Features
* `[jest-runtime]` Provide `require.main` property set to module with test suite
([#5618](`https://github.com/facebook/jest/pull/5618`))
##### Chore & Maintenance
* `[docs]` Add note about Node version support
([#5622](`https://github.com/facebook/jest/pull/5622`))
* `[docs]` Update to use yarn
([#5624](`https://github.com/facebook/jest/pull/5624`))
* `[docs]` Add how to mock scoped modules to Manual Mocks doc
([#5638](`https://github.com/facebook/jest/pull/5638`))
---
### [`v22.4.2`](https://github.com/facebook/jest/blob/master/CHANGELOG.md#2242)
##### Fixes
* `[jest-haste-map]` Recreate Haste map when deserialization fails
([#5642](`https://github.com/facebook/jest/pull/5642`))
---
Commits
#### v22.2.2
- [`9797f23`](https://github.com/facebook/jest/commit/9797f2362db5569aa21584461504f8c8823fc06a) Release v22.2.1
- [`c8d1c79`](https://github.com/facebook/jest/commit/c8d1c79b9f6e6a7532ae111546fe458471d6a8c7) Fix Node.js 4 support (#5489)
- [`efec054`](https://github.com/facebook/jest/commit/efec054049928043bb61b6c66059a47ccbca324f) Add unique id for each worker and pass it to the child process (#5494)
- [`3942361`](https://github.com/facebook/jest/commit/39423619602bd5952cc8ff55dc6b6b3f341cccf9) Revert "Remove retainLines from babel-jest (#5439)" (#5496)
- [`7c398db`](https://github.com/facebook/jest/commit/7c398db0e7f990a8f755f88fabdb05a70f15c260) Standardize file names: Fix file names in root (#5500)
- [`a87514a`](https://github.com/facebook/jest/commit/a87514a1c2b5d9be920831a386f50a29bed98469) Add testPath to suite in jest-jasmine2 reporter callbacks (#5394)
- [`97f0308`](https://github.com/facebook/jest/commit/97f030814628efe7877e6ad655bb55867268b304) Ignore order on unordered Immutable.js structures (#5501)
- [`f2ef92d`](https://github.com/facebook/jest/commit/f2ef92d2d64a63e4ceac0c0646d5c3eea83624ae) feat(jest-docblock): support multiple of the same @pragma (#5502)
- [`b8a8b29`](https://github.com/facebook/jest/commit/b8a8b29a7df7587bc02e731d49e3909ef84469f4) Adds new video page (#5497)
- [`3250edc`](https://github.com/facebook/jest/commit/3250edcf6a4bf74e8004d63628089ecd96bb30ff) Update users.js (#5504)
- [`fc14ac8`](https://github.com/facebook/jest/commit/fc14ac8c23ceac601a7ffd927e4dffbc85501270) fix lint on website (#5506)
- [`786f295`](https://github.com/facebook/jest/commit/786f2956b863095313a8d727b1c85196542d1d1d) jest-haste-map: add test to demonstrate broken behavior for platform-specific files (#5508)
#### v22.3.0
- [`c5a2ea0`](https://github.com/facebook/jest/commit/c5a2ea0dbed0875caf13bd6088095a6dcf130421) Release v22.2.2
- [`95c7e5e`](https://github.com/facebook/jest/commit/95c7e5eee104d6e0b573ec8fcc446e78458a4cf3) Scripts standardize file names: Fix file names in scripts directory (#5511)
- [`09adc31`](https://github.com/facebook/jest/commit/09adc319e967748de424572495695a33e0e7925b) capitalize skipOnWindows variable -> SkipOnWindows (#5515)
- [`f29c03e`](https://github.com/facebook/jest/commit/f29c03ea0c97d97aede05b5c1a97ce04a953d3f9) add methods to custom and buffered consoles (#5514)
- [`af19110`](https://github.com/facebook/jest/commit/af191108302c719475aa34028a4ed46589b4cb9c) Documentation for Interactive Snapshot Update (#5291)
- [`e9bf143`](https://github.com/facebook/jest/commit/e9bf1430843a2aff5f73bb8a3c01d276ad11631c) Add watchAll flag to jest-editor-support (#5523)
- [`2d2fb5b`](https://github.com/facebook/jest/commit/2d2fb5bf321de937d3e304e39d37232991b5504e) refactor: strip <rootDir> from collectCoverageFrom values (#5524)
- [`508f789`](https://github.com/facebook/jest/commit/508f789a8eb74bfce345556945d22cc32770f863) Add hyperlink to video URL (#5528)
- [`55c342a`](https://github.com/facebook/jest/commit/55c342af240a8aa1acb487a253a6ade4a8a4f4a1) jest-haste-map: fix bug where platform-specific files are removed (#5534)
- [`133a9a1`](https://github.com/facebook/jest/commit/133a9a1fbfb264ff0bc6649eb08fe46641101c21) support multiple glob patterns for collectCoverageFrom (#5537)
- [`2df9e4c`](https://github.com/facebook/jest/commit/2df9e4cc4b93abc71659c216c07d1a6c78909f0b) Use preinstalled Yarn on Appveyor (#5548)
- [`b69ac08`](https://github.com/facebook/jest/commit/b69ac08362aae5d23801f8b659d90e6feb4d5b5b) Use `cross-spawn` for running Yarn in integration tests (#5550)
- [`d9b4f0c`](https://github.com/facebook/jest/commit/d9b4f0c78c56377ccdda1523217bb49bb0d5f2db) fix(watchman): Fix watchman checks on Windows (#5553)
#### v22.4.0
- [`5f8ad63`](https://github.com/facebook/jest/commit/5f8ad6379ac3962cc1eb9ce25eef6f3e8fc241e0) Release v22.3.0
- [`c5fbd30`](https://github.com/facebook/jest/commit/c5fbd304c462e3c74c6cc5f5e7484e466c10521e) Use native trim instead of regexp (#5555)
- [`5b00d97`](https://github.com/facebook/jest/commit/5b00d9785015f699d0207b95770916d28cf78271) Fix jest-circus setup logic (#5561)
- [`1ee7df9`](https://github.com/facebook/jest/commit/1ee7df960e039a4f9033fcccfa471c1c47ccd81c) Optimize finding top frame in formatPaths (#5557)
- [`84e9789`](https://github.com/facebook/jest/commit/84e97893cb744639a74e7ffa9d099e995bd6c4f2) Fix typo in JestObjectAPI.md (#5559)
- [`4ca959b`](https://github.com/facebook/jest/commit/4ca959b041dcf6f2fe44fdebd7f86a4e0509e185) Revert setRawMode on --watch quit (fixes #5028) (#5029)
- [`10276f9`](https://github.com/facebook/jest/commit/10276f90b264f8e02b2bb3b4f619095ac63cd59c) Standardize file names in integration-tests (#5513)
- [`c35b78b`](https://github.com/facebook/jest/commit/c35b78b7c0e6f7944b5b52392efdb09abc860570) Use v8.serialize when available (#5565)
- [`9d11ec4`](https://github.com/facebook/jest/commit/9d11ec4ee111df8a0925f34abb0a86e8920d59c7) Optimize getting stack trace in message-util (#5569)
- [`71795a5`](https://github.com/facebook/jest/commit/71795a5bb07e877084ccf87f9826ba9176f65a8c) Use native trimLeft, trimRight instead of regexp (#5570)
- [`146900f`](https://github.com/facebook/jest/commit/146900f5d36691ab706aafee19e747a4de6cdd71) Replace path sep for testRegex in should_instrument (#5560)
- [`b9b1f0d`](https://github.com/facebook/jest/commit/b9b1f0d0709c2948bf5c5d198c0c54b904218b2b) Update TutorialReactNative.md (#5567)
- [`fcdf071`](https://github.com/facebook/jest/commit/fcdf071955cf9ee4007226f15c91d7e483346973) docs: add jest-mongodb example (#5571)
- [`d065e87`](https://github.com/facebook/jest/commit/d065e87a2322e1b4b70e7ba9de3c24aed7a2ea72) Issue #5197: Add descriptive error to Expect CalledWith methods when missing optional arguments (#5547)
- [`966aab6`](https://github.com/facebook/jest/commit/966aab60faa1b0a8cfdd51b95bcca780c68001d7) Removing the mapCoverage condition on reading inlineSourceMaps. (#5177)
- [`ba8a2d5`](https://github.com/facebook/jest/commit/ba8a2d5ccfb96987b30d9b808bf0961eae89d67b) Print deprecation warnings on CLI flags (#5536)
- [`0285e63`](https://github.com/facebook/jest/commit/0285e63e903abbab9c323341e62eb68b29acd87e) Simplify check for -0 in printNumber (#5581)
- [`e4f7d84`](https://github.com/facebook/jest/commit/e4f7d84568c16f692b08c954183ca524c14eced1) Update discord links, lint markdown (#5586)
- [`4d4bc67`](https://github.com/facebook/jest/commit/4d4bc671297ad603cba38827f041eaef0c56f078) chore(website): Upgrade docusaurus to 1.0.6 (#5587)
- [`950b2e7`](https://github.com/facebook/jest/commit/950b2e7825f872e54e9e639de64b8c7bab16642f) Don't skip configured matchers for exact file names (#5582)
- [`430aebe`](https://github.com/facebook/jest/commit/430aebe49e9f144d29f144f5a29482315e269e4a) Simplify check -0 in jasmine-utils (#5592)
- [`3a86707`](https://github.com/facebook/jest/commit/3a8670703af15d7371d6b5ee5c2e2ec3c0bf1f46) chore: make no-unused-vars eslint rule error (#5598)
- [`e89de4e`](https://github.com/facebook/jest/commit/e89de4e6a9bbe72fb5ba86f254b55c9b3b220af3) Make it possible to merge `transform` option with preset (#5505)
- [`4e4a9e0`](https://github.com/facebook/jest/commit/4e4a9e0fca190d0eafd4757a09eb1e3c9d35d00a) add a documentation note for project displayName configuration (#5600)
- [`71c31d7`](https://github.com/facebook/jest/commit/71c31d76be116764b44dff0318d5c4d7ae8300f1) docs: link to full list of matchers in opening paragraph (#5606)
- [`402a6fe`](https://github.com/facebook/jest/commit/402a6feb7a6db7124c9802901232e973458e5d4c) chore(deps): upgrade flow to 0.66 (#5602)
- [`e2bb8f4`](https://github.com/facebook/jest/commit/e2bb8f41c925c65ab13ad7c935692abce41cc64e) Optimize print calls in spy matches (#5596)
- [`0b88438`](https://github.com/facebook/jest/commit/0b8843836fdb627b84ceab79eb170bf162a1207c) url and name fix (#5608)
- [`f5879c0`](https://github.com/facebook/jest/commit/f5879c061313f287446e43cb6f1fbd79d7cefe5e) fix: make Errors match with ordinary objects (fixes #5359) (#5611)
- [`9c0912c`](https://github.com/facebook/jest/commit/9c0912cf4ca66dcf720d3b37b4d36baf6f712aac) fix: correcting a mislabeled CHANGELOG.md entry (#5614)
- [`bea889c`](https://github.com/facebook/jest/commit/bea889c9d8ccb74dc148380b4ab4b649746ea0ef) Avoid loading files that we know are binary ahead of time (#5612)
- [`3a2854a`](https://github.com/facebook/jest/commit/3a2854aeca669b6cd82139de23333fa18fce7c6c) Add jest-serializer module (#5609)
- [`adbd927`](https://github.com/facebook/jest/commit/adbd927987b7a4cbd937464ab038b6ee29d83554) fix(watchman): Overhauls how Watchman crawler works fixing Windows (#5615)
- [`593d801`](https://github.com/facebook/jest/commit/593d801340f93222f567576204dd32bc08272bd4) fix console & buffered console assert behaviour (#5576)
- [`9df3035`](https://github.com/facebook/jest/commit/9df3035829299a93579bad8cfb1db2081617ea6e) Explain manual mocking modules (#5616)
#### v22.4.1
- [`acb7f64`](https://github.com/facebook/jest/commit/acb7f64ba0eb1b4a7a3801a01977cf1bb2a54e72) Release v22.4.0
- [`4576dd4`](https://github.com/facebook/jest/commit/4576dd4ea448bfb2501cd1a664dca2aaa84e9187) Provide `require.main` property (#5618)
- [`da90886`](https://github.com/facebook/jest/commit/da908862ad5a28155ca7901f8443033e17c8d9ec) Add note about Node version support in README and docs. Fixes #4947 (#5622)
- [`6ee2a14`](https://github.com/facebook/jest/commit/6ee2a14b83393c9e3e3408beb5c4848489f04cf6) Update to docs to use yarn (#5624)
- [`79533a9`](https://github.com/facebook/jest/commit/79533a90aefc94d0ee6029a7c6ab97071b2c6b1c) Small polish to the plugins API (#5572)
- [`ca8910f`](https://github.com/facebook/jest/commit/ca8910f3b2b7cd57e34ec8e2b6dea684a882160f) Remove debug snapshot (#5627)
- [`7bcdc8c`](https://github.com/facebook/jest/commit/7bcdc8c2305c06204f23da615590145c8db6f19b) Examples/standardize folder names (#5626)
- [`6ab04b7`](https://github.com/facebook/jest/commit/6ab04b79e8f70b5f3e6a6d0d0f8874e72d73070e) add versioned documentation to the website (#5541)
- [`23eec74`](https://github.com/facebook/jest/commit/23eec748db0de7b6b5fcda28cc51c48ddae16545) [WIP] Remove usage of `retainLines` (#5594)
- [`4b6f850`](https://github.com/facebook/jest/commit/4b6f8506520b17ded174a2609ec6052b6a792db8) Update documentation on automocking (#5630)
- [`1203ed6`](https://github.com/facebook/jest/commit/1203ed6ebeffe1edb7d1aa6c9ef0bd3cde8d92cf) [jest-editor-support] update TypeScript definition (#5625)
- [`67d1e47`](https://github.com/facebook/jest/commit/67d1e470a8de8e4332831db5a4191a4147d6410d) Add how to mock scoped modules to Manual Mocks doc (#5638)
- [`e9825d3`](https://github.com/facebook/jest/commit/e9825d3990bd82cd0c22cebcf9f62b688cc5dc0b) update istanbul-api (#5637)
- [`497be76`](https://github.com/facebook/jest/commit/497be7627ef851c947da830d4a8e21046f847a78) Jest got too popular (#5639)
- [`f020182`](https://github.com/facebook/jest/commit/f020182451e934221dedd92d2f550c55126f0985) fix(watchman): Parallelize Watchman calls in crawler again (#5640)
#### v22.4.2
- [`52bbb26`](https://github.com/facebook/jest/commit/52bbb26615d1d6f150082873a3346db17b158df9) Release v22.4.1
- [`cdd5dfe`](https://github.com/facebook/jest/commit/cdd5dfea815bd043703c991dcca2051458d7ee75) Force haste map regeneration on deserialization error (#5642)
This Pull Request updates dependency jest from
^20.0.0
to^20.0.0 || ^22.0.0
Release Notes
### [`v21.0.0`](https://github.com/facebook/jest/blob/master/CHANGELOG.md#jest-2100) * Add --changedFilesWithAncestor ([#4070](`https://github.com/facebook/jest/pull/4070`)) * Add --findRelatedFiles ([#4131](`https://github.com/facebook/jest/pull/4131`)) * Add --onlyChanged tests ([#3977](`https://github.com/facebook/jest/pull/3977`)) * Add `contextLines` option to jest-diff ([#4152](`https://github.com/facebook/jest/pull/4152`)) * Add alternative serialize API for pretty-format plugins ([#4114](`https://github.com/facebook/jest/pull/4114`)) * Add displayName to MPR ([#4327](`https://github.com/facebook/jest/pull/4327`)) * Add displayName to TestResult ([#4408](`https://github.com/facebook/jest/pull/4408`)) * Add es5 build of pretty-format ([#4075](`https://github.com/facebook/jest/pull/4075`)) * Add extra info to no tests for changed files message ([#4188](`https://github.com/facebook/jest/pull/4188`)) * Add fake chalk in browser builds in order to support IE10 ([#4367](`https://github.com/facebook/jest/pull/4367`)) * Add jest.requireActual ([#4260](`https://github.com/facebook/jest/pull/4260`)) * Add maxWorkers to globalConfig ([#4005](`https://github.com/facebook/jest/pull/4005`)) * Add skipped tests support for jest-editor-support ([#4346](`https://github.com/facebook/jest/pull/4346`)) * Add source map support for better debugging experience ([#3738](`https://github.com/facebook/jest/pull/3738`)) * Add support for Error objects in toMatchObject ([#4339](`https://github.com/facebook/jest/pull/4339`)) * Add support for Immutable.Record in pretty-format ([#3678](`https://github.com/facebook/jest/pull/3678`)) * Add tests for extract_requires on export types ([#4080](`https://github.com/facebook/jest/pull/4080`)) * Add that toMatchObject can match arrays ([#3994](`https://github.com/facebook/jest/pull/3994`)) * Add watchPathIgnorePatterns to exclude paths to trigger test re-run in watch mode ([#4331](`https://github.com/facebook/jest/pull/4331`)) * Adding ancestorTitles property to JSON test output ([#4293](`https://github.com/facebook/jest/pull/4293`)) * Allow custom resolver to be used with[out] moduleNameMapper ([#4174](`https://github.com/facebook/jest/pull/4174`)) * Avoid parsing `.require(…)` method calls ([#3777](`https://github.com/facebook/jest/pull/3777`)) * Avoid unnecessary function declarations and call in pretty-format ([#3962](`https://github.com/facebook/jest/pull/3962`)) * Avoid writing to stdout in default reporter if --json is enabled. Fixes #3941 ([#3945](`https://github.com/facebook/jest/pull/3945`)) * Better error handling for --config ([#4230](`https://github.com/facebook/jest/pull/4230`)) * Call consistent pretty-format plugins within Jest ([#3800](`https://github.com/facebook/jest/pull/3800`)) * Change babel-core to peerDependency for compatibility with Babel 7 ([#4162](`https://github.com/facebook/jest/pull/4162`)) * Change Promise detection code in jest-circus to support non-global Promise implementations ([#4375](`https://github.com/facebook/jest/pull/4375`)) * Changed files eager loading ([#3979](`https://github.com/facebook/jest/pull/3979`)) * Check whether we should output to stdout or stderr ([#3953](`https://github.com/facebook/jest/pull/3953`)) * Clarify what objects toContain and toContainEqual can be used on ([#4307](`https://github.com/facebook/jest/pull/4307`)) * Clean up resolve() logic. Provide useful names for variables and functions. Test that a directory exists before attempting to resolve files within it. ([#4325](`https://github.com/facebook/jest/pull/4325`)) * cleanupStackTrace ([#3696](`https://github.com/facebook/jest/pull/3696`)) * compare objects with Symbol keys ([#3437](`https://github.com/facebook/jest/pull/3437`)) * Complain if expect is passed multiple arguments ([#4237](`https://github.com/facebook/jest/pull/4237`)) * Completes nodeCrawl with empty roots ([#3776](`https://github.com/facebook/jest/pull/3776`)) * Consistent naming of files ([#3798](`https://github.com/facebook/jest/pull/3798`)) * Convert code base to ESM import ([#3778](`https://github.com/facebook/jest/pull/3778`)) * Correct summary message for flag --findRelatedTests. ([#4309](`https://github.com/facebook/jest/pull/4309`)) * Coverage thresholds can be set up for individual files ([#4185](`https://github.com/facebook/jest/pull/4185`)) * custom reporter error handling ([#4051](`https://github.com/facebook/jest/pull/4051`)) * Define separate type for pretty-format plugin Options ([#3802](`https://github.com/facebook/jest/pull/3802`)) * Delete confusing async keyword ([#3679](`https://github.com/facebook/jest/pull/3679`)) * Delete redundant branch in ReactElement and HTMLElement plugins ([#3731](`https://github.com/facebook/jest/pull/3731`)) * Don't format node assert errors when there's no 'assert' module ([#4376](`https://github.com/facebook/jest/pull/4376`)) * Don't print test summary in --silent ([#4106](`https://github.com/facebook/jest/pull/4106`)) * Don't try to build ghost packages ([#3934](`https://github.com/facebook/jest/pull/3934`)) * Escape double quotes in attribute values in HTMLElement plugin ([#3797](`https://github.com/facebook/jest/pull/3797`)) * Explain how to clear the cache ([#4232](`https://github.com/facebook/jest/pull/4232`)) * Factor out common code for collections in pretty-format ([#4184](`https://github.com/facebook/jest/pull/4184`)) * Factor out common code for markup in React plugins ([#4171](`https://github.com/facebook/jest/pull/4171`)) * Feature/internal resolve ([#4315](`https://github.com/facebook/jest/pull/4315`)) * Fix --logHeapUsage ([#4176](`https://github.com/facebook/jest/pull/4176`)) * Fix --showConfig to show all project configs ([#4078](`https://github.com/facebook/jest/pull/4078`)) * Fix --watchAll ([#4254](`https://github.com/facebook/jest/pull/4254`)) * Fix bug when setTimeout is mocked ([#3769](`https://github.com/facebook/jest/pull/3769`)) * Fix changedFilesWithAncestor ([#4193](`https://github.com/facebook/jest/pull/4193`)) * Fix colors for expected/stored snapshot message ([#3702](`https://github.com/facebook/jest/pull/3702`)) * Fix concurrent test failure ([#4159](`https://github.com/facebook/jest/pull/4159`)) * Fix for 4286: Compare Maps and Sets by value rather than order ([#4303](`https://github.com/facebook/jest/pull/4303`)) * fix forceExit ([#4105](`https://github.com/facebook/jest/pull/4105`)) * Fix grammar in React Native docs ([#3838](`https://github.com/facebook/jest/pull/3838`)) * Fix inconsistent name of complex values in pretty-format ([#4001](`https://github.com/facebook/jest/pull/4001`)) * Fix issue mocking bound method ([#3805](`https://github.com/facebook/jest/pull/3805`)) * Fix jest-circus ([#4290](`https://github.com/facebook/jest/pull/4290`)) * Fix lint warning in master ([#4132](`https://github.com/facebook/jest/pull/4132`)) * Fix linting ([#3946](`https://github.com/facebook/jest/pull/3946`)) * fix merge conflict ([#4144](`https://github.com/facebook/jest/pull/4144`)) * Fix minor typo ([#3729](`https://github.com/facebook/jest/pull/3729`)) * fix missing console.log messages ([#3895](`https://github.com/facebook/jest/pull/3895`)) * fix mock return value ([#3933](`https://github.com/facebook/jest/pull/3933`)) * Fix mocking for modules with folders on windows ([#4238](`https://github.com/facebook/jest/pull/4238`)) * Fix NODE_PATH resolving for relative paths ([#3616](`https://github.com/facebook/jest/pull/3616`)) * Fix options.moduleNameMapper override order with preset ([#3565](`https://github.com/facebook/jest/pull/3565`) ([#3689](`https://github.com/facebook/jest/pull/3689`)) * Fix React PropTypes warning in tests for Immutable plugin ([#4412](`https://github.com/facebook/jest/pull/4412`)) * Fix regression in mockReturnValueOnce ([#3857](`https://github.com/facebook/jest/pull/3857`)) * Fix sample code of mock class constructors ([#4115](`https://github.com/facebook/jest/pull/4115`)) * Fix setup-test-framework-test ([#3773](`https://github.com/facebook/jest/pull/3773`)) * fix typescript jest test crash ([#4363](`https://github.com/facebook/jest/pull/4363`)) * Fix watch mode ([#4084](`https://github.com/facebook/jest/pull/4084`)) * Fix Watchman on windows ([#4018](`https://github.com/facebook/jest/pull/4018`)) * Fix(babel): Handle ignored files in babel v7 ([#4393](`https://github.com/facebook/jest/pull/4393`)) * Fix(babel): Support upcoming beta ([#4403](`https://github.com/facebook/jest/pull/4403`)) * Fixed object matcher ([#3799](`https://github.com/facebook/jest/pull/3799`)) * Fixes #3820 use extractExpectedAssertionsErrors in jasmine setup * Flow upgrade ([#4355](`https://github.com/facebook/jest/pull/4355`)) * Force message in matchers to always be a function ([#3972](`https://github.com/facebook/jest/pull/3972`)) * Format `describe` and use `test` instead of `it` alias ([#3792](`https://github.com/facebook/jest/pull/3792`)) * global_config.js for multi-project runner ([#4023](`https://github.com/facebook/jest/pull/4023`)) * Handle async errors ([#4016](`https://github.com/facebook/jest/pull/4016`)) * Hard-fail if hasteImpl is throwing an error during initialization. ([#3812](`https://github.com/facebook/jest/pull/3812`)) * Ignore import type for extract_requires ([#4079](`https://github.com/facebook/jest/pull/4079`)) * Ignore indentation of data structures in jest-diff ([#3429](`https://github.com/facebook/jest/pull/3429`)) * Implement 'jest.requireMock' ([#4292](`https://github.com/facebook/jest/pull/4292`)) * Improve Jest phabricator plugin ([#4195](`https://github.com/facebook/jest/pull/4195`)) * Improve Seq and remove newline from non-min empty in Immutable plugin ([#4241](`https://github.com/facebook/jest/pull/4241`)) * Improved the jest reporter with snapshot info per test. ([#3660](`https://github.com/facebook/jest/pull/3660`)) * Include fullName in formattedAssertion ([#4273](`https://github.com/facebook/jest/pull/4273`)) * Integrated with Yarn workspaces ([#3906](`https://github.com/facebook/jest/pull/3906`)) * jest --all ([#4020](`https://github.com/facebook/jest/pull/4020`)) * jest-circus test failures ([#3770](`https://github.com/facebook/jest/pull/3770`)) * jest-circus Timeouts ([#3760](`https://github.com/facebook/jest/pull/3760`)) * jest-haste-map: add test case for broken handling of ignore pattern ([#4047](`https://github.com/facebook/jest/pull/4047`)) * jest-haste-map: add test+fix for broken platform module support ([#3885](`https://github.com/facebook/jest/pull/3885`)) * jest-haste-map: deprecate functional ignorePattern and use it in cache key ([#4063](`https://github.com/facebook/jest/pull/4063`)) * jest-haste-map: mock 'fs' with more idiomatic jest.mock() ([#4046](`https://github.com/facebook/jest/pull/4046`)) * jest-haste-map: only file IO errors should be silently ignored ([#3816](`https://github.com/facebook/jest/pull/3816`)) * jest-haste-map: throw when trying to get a duplicated module ([#3976](`https://github.com/facebook/jest/pull/3976`)) * jest-haste-map: watchman crawler: normalize paths ([#3887](`https://github.com/facebook/jest/pull/3887`)) * jest-runtime: atomic cache write, and check validity of data ([#4088](`https://github.com/facebook/jest/pull/4088`)) * Join lines with newline in jest-diff ([#4314](`https://github.com/facebook/jest/pull/4314`)) * Keep ARGV only in CLI files ([#4012](`https://github.com/facebook/jest/pull/4012`)) * let transformers adjust cache key based on mapCoverage ([#4187](`https://github.com/facebook/jest/pull/4187`)) * Lift requires ([#3780](`https://github.com/facebook/jest/pull/3780`)) * Log stack when reporting errors in jest-runtime ([#3833](`https://github.com/facebook/jest/pull/3833`)) * Make --listTests return a new line separated list when not using --json ([#4229](`https://github.com/facebook/jest/pull/4229`)) * Make build script printing small-terminals-friendly ([#3892](`https://github.com/facebook/jest/pull/3892`)) * Make error messages more explicit for toBeCalledWith assertions ([#3913](`https://github.com/facebook/jest/pull/3913`)) * Make jest-matcher-utils use ESM exports ([#4342](`https://github.com/facebook/jest/pull/4342`)) * Make jest-runner a standalone package. ([#4236](`https://github.com/facebook/jest/pull/4236`)) * Make Jest’s Test Runner configurable. ([#4240](`https://github.com/facebook/jest/pull/4240`)) * Make listTests always print to console.log ([#4391](`https://github.com/facebook/jest/pull/4391`)) * Make providesModuleNodeModules ignore nested node_modules directories * Make sure function mocks match original arity ([#4170](`https://github.com/facebook/jest/pull/4170`)) * Make sure runAllTimers also clears all ticks ([#3915](`https://github.com/facebook/jest/pull/3915`)) * Make toBe matcher error message more helpful for objects and arrays ([#4277](`https://github.com/facebook/jest/pull/4277`)) * Make useRealTimers play well with timers: fake ([#3858](`https://github.com/facebook/jest/pull/3858`)) * Move getType from jest-matcher-utils to separate package ([#3559](`https://github.com/facebook/jest/pull/3559`)) * Multiroot jest-change-files ([#3969](`https://github.com/facebook/jest/pull/3969`)) * Output created snapshot when using --ci option ([#3693](`https://github.com/facebook/jest/pull/3693`)) * Point out you can use matchers in .toMatchObject ([#3796](`https://github.com/facebook/jest/pull/3796`)) * Prevent babelrc package import failure on relative current path ([#3723](`https://github.com/facebook/jest/pull/3723`)) * Print RDP details for windows builds ([#4017](`https://github.com/facebook/jest/pull/4017`)) * Provide better error checking for transformed content ([#3807](`https://github.com/facebook/jest/pull/3807`)) * Provide printText and printComment in markup.js for HTMLElement plugin ([#4344](`https://github.com/facebook/jest/pull/4344`)) * Provide regex visualization for testRegex ([#3758](`https://github.com/facebook/jest/pull/3758`)) * Refactor CLI ([#3862](`https://github.com/facebook/jest/pull/3862`)) * Refactor names and delimiters of complex values in pretty-format ([#3986](`https://github.com/facebook/jest/pull/3986`)) * Replace concat(Immutable) with Immutable as item of plugins array ([#4207](`https://github.com/facebook/jest/pull/4207`)) * Replace Jasmine with jest-circus ([#3668](`https://github.com/facebook/jest/pull/3668`)) * Replace match with test and omit redundant String conversion ([#4311](`https://github.com/facebook/jest/pull/4311`)) * Replace print with serialize in AsymmetricMatcher plugin ([#4173](`https://github.com/facebook/jest/pull/4173`)) * Replace print with serialize in ConvertAnsi plugin ([#4225](`https://github.com/facebook/jest/pull/4225`)) * Replace print with serialize in HTMLElement plugin ([#4215](`https://github.com/facebook/jest/pull/4215`)) * Replace print with serialize in Immutable plugins ([#4189](`https://github.com/facebook/jest/pull/4189`)) * Replace unchanging args with one config arg within pretty-format ([#4076](`https://github.com/facebook/jest/pull/4076`)) * Return UNDEFINED for undefined type in ReactElement plugin ([#4360](`https://github.com/facebook/jest/pull/4360`)) * Rewrite some read bumps in pretty-format ([#4093](`https://github.com/facebook/jest/pull/4093`)) * Run update method before installing JRE on Circle ([#4318](`https://github.com/facebook/jest/pull/4318`)) * Separated the snapshot summary creation from the printing to improve testability. ([#4373](`https://github.com/facebook/jest/pull/4373`)) * Set coverageDirectory during normalize phase ([#3966](`https://github.com/facebook/jest/pull/3966`)) * Setup custom reporters after default reporters ([#4053](`https://github.com/facebook/jest/pull/4053`)) * Setup for Circle 2 ([#4149](`https://github.com/facebook/jest/pull/4149`)) * Simplify readme ([#3790](`https://github.com/facebook/jest/pull/3790`)) * Simplify snapshots definition ([#3791](`https://github.com/facebook/jest/pull/3791`)) * skipNodeResolution config option ([#3987](`https://github.com/facebook/jest/pull/3987`)) * Small fixes to toHaveProperty docs ([#3878](`https://github.com/facebook/jest/pull/3878`)) * Sort attributes by name in HTMLElement plugin ([#3783](`https://github.com/facebook/jest/pull/3783`)) * Specify watchPathIgnorePatterns will only be available in Jest 21+ ([#4398](`https://github.com/facebook/jest/pull/4398`)) * Split TestRunner off of TestScheduler ([#4233](`https://github.com/facebook/jest/pull/4233`)) * Strict and explicit config resolution logic ([#4122](`https://github.com/facebook/jest/pull/4122`)) * Support maxDepth option in React plugins ([#4208](`https://github.com/facebook/jest/pull/4208`)) * Support SVG elements in HTMLElement plugin ([#4335](`https://github.com/facebook/jest/pull/4335`)) * Test empty Immutable collections with {min: false} option ([#4121](`https://github.com/facebook/jest/pull/4121`)) * test to debug travis failure in master ([#4145](`https://github.com/facebook/jest/pull/4145`)) * testPathPattern message test ([#4006](`https://github.com/facebook/jest/pull/4006`)) * Throw Error When Using Nested It Specs ([#4039](`https://github.com/facebook/jest/pull/4039`)) * Throw when moduleNameMapper points to inexistent module ([#3567](`https://github.com/facebook/jest/pull/3567`)) * Unified 'no tests found' message for non-verbose MPR ([#4354](`https://github.com/facebook/jest/pull/4354`)) * Update migration guide with jest-codemods transformers ([#4306](`https://github.com/facebook/jest/pull/4306`)) * Use "inputSourceMap" for coverage re-mapping. ([#4009](`https://github.com/facebook/jest/pull/4009`)) * Use "verbose" no test found message when there is only one project ([#4378](`https://github.com/facebook/jest/pull/4378`)) * Use babel transform to inline all requires ([#4340](`https://github.com/facebook/jest/pull/4340`)) * Use eslint plugins to run prettier ([#3971](`https://github.com/facebook/jest/pull/3971`)) * Use iterableEquality in spy matchers ([#3651](`https://github.com/facebook/jest/pull/3651`)) * Use modern HTML5 ([#3937](`https://github.com/facebook/jest/pull/3937`)) * Wrap `Error.captureStackTrace` in a try ([#4035](`https://github.com/facebook/jest/pull/4035`)) --- ### [`v21.0.1`](https://github.com/facebook/jest/blob/master/CHANGELOG.md#jest-2101) * Remove obsolete error ([#4417](`https://github.com/facebook/jest/pull/4417`)) --- ### [`v21.0.2`](https://github.com/facebook/jest/blob/master/CHANGELOG.md#jest-2102) * Take precedence of NODE_PATH when resolving node_modules directories ([#4453](`https://github.com/facebook/jest/pull/4453`)) * Fix race condition with --coverage and babel-jest identical file contents edge case ([#4432](`https://github.com/facebook/jest/pull/4432`)) * Add extra parameter `--runTestsByPath`. ([#4411](`https://github.com/facebook/jest/pull/4411`)) * Upgrade all outdated deps ([#4425](`https://github.com/facebook/jest/pull/4425`)) --- ### [`v21.1.0`](https://github.com/facebook/jest/blob/master/CHANGELOG.md#jest-2110) * (minor) Use ES module exports ([#4454](`https://github.com/facebook/jest/pull/4454`)) * Allow chaining mockClear and mockReset ([#4475](`https://github.com/facebook/jest/pull/4475`)) * Call jest-diff and pretty-format more precisely in toHaveProperty matcher ([#4445](`https://github.com/facebook/jest/pull/4445`)) * Expose restoreAllMocks to object ([#4463](`https://github.com/facebook/jest/pull/4463`)) * Fix function name cleaning when making mock fn ([#4464](`https://github.com/facebook/jest/pull/4464`)) * Fix Map/Set equality checker ([#4404](`https://github.com/facebook/jest/pull/4404`)) * Make FUNCTION_NAME_RESERVED_PATTERN stateless ([#4466](`https://github.com/facebook/jest/pull/4466`)) --- ### [`v21.2.0`](https://github.com/facebook/jest/blob/master/CHANGELOG.md#jest-2120) * 🃏 Change license from BSD+Patents to MIT. * Allow eslint-plugin to recognize more disabled tests ([#4533](`https://github.com/facebook/jest/pull/4533`)) * Add babel-plugin for object spread syntax to babel-preset-jest ([#4519](`https://github.com/facebook/jest/pull/4519`)) * Display outer element and trailing newline consistently in jest-diff ([#4520](`https://github.com/facebook/jest/pull/4520`)) * Do not modify stack trace of JestAssertionError ([#4516](`https://github.com/facebook/jest/pull/4516`)) * Print errors after test structure in verbose mode ([#4504](`https://github.com/facebook/jest/pull/4504`)) * Fix `--silent --verbose` problem ([#4505](`https://github.com/facebook/jest/pull/4505`)) * Fix: Reset local state of assertions when using hasAssertions ([#4498](`https://github.com/facebook/jest/pull/4498`)) * jest-resolve: Prevent default resolver failure when potential resolution directory does not exist ([#4483](`https://github.com/facebook/jest/pull/4483`)) --- ### [`v21.2.1`](https://github.com/facebook/jest/blob/master/CHANGELOG.md#jest-2121) * Fix watchAll not running tests on save ([#4550](`https://github.com/facebook/jest/pull/4550`)) * Add missing escape sequences to ConvertAnsi plugin ([#4544](`https://github.com/facebook/jest/pull/4544`)) --- ### [`v22.0.0`](https://github.com/facebook/jest/blob/master/CHANGELOG.md#jest-2200) ##### Fixes * `[jest-resolve]` Use `module.builtinModules` as `BUILTIN_MODULES` when it exists * `[jest-worker]` Remove `debug` and `inspect` flags from the arguments sent to the child ([#5068](`https://github.com/facebook/jest/pull/5068`)) * `[jest-config]` Use all `--testPathPattern` and `Commits
#### v22.2.2 - [`9797f23`](https://github.com/facebook/jest/commit/9797f2362db5569aa21584461504f8c8823fc06a) Release v22.2.1 - [`c8d1c79`](https://github.com/facebook/jest/commit/c8d1c79b9f6e6a7532ae111546fe458471d6a8c7) Fix Node.js 4 support (#5489) - [`efec054`](https://github.com/facebook/jest/commit/efec054049928043bb61b6c66059a47ccbca324f) Add unique id for each worker and pass it to the child process (#5494) - [`3942361`](https://github.com/facebook/jest/commit/39423619602bd5952cc8ff55dc6b6b3f341cccf9) Revert "Remove retainLines from babel-jest (#5439)" (#5496) - [`7c398db`](https://github.com/facebook/jest/commit/7c398db0e7f990a8f755f88fabdb05a70f15c260) Standardize file names: Fix file names in root (#5500) - [`a87514a`](https://github.com/facebook/jest/commit/a87514a1c2b5d9be920831a386f50a29bed98469) Add testPath to suite in jest-jasmine2 reporter callbacks (#5394) - [`97f0308`](https://github.com/facebook/jest/commit/97f030814628efe7877e6ad655bb55867268b304) Ignore order on unordered Immutable.js structures (#5501) - [`f2ef92d`](https://github.com/facebook/jest/commit/f2ef92d2d64a63e4ceac0c0646d5c3eea83624ae) feat(jest-docblock): support multiple of the same @pragma (#5502) - [`b8a8b29`](https://github.com/facebook/jest/commit/b8a8b29a7df7587bc02e731d49e3909ef84469f4) Adds new video page (#5497) - [`3250edc`](https://github.com/facebook/jest/commit/3250edcf6a4bf74e8004d63628089ecd96bb30ff) Update users.js (#5504) - [`fc14ac8`](https://github.com/facebook/jest/commit/fc14ac8c23ceac601a7ffd927e4dffbc85501270) fix lint on website (#5506) - [`786f295`](https://github.com/facebook/jest/commit/786f2956b863095313a8d727b1c85196542d1d1d) jest-haste-map: add test to demonstrate broken behavior for platform-specific files (#5508) #### v22.3.0 - [`c5a2ea0`](https://github.com/facebook/jest/commit/c5a2ea0dbed0875caf13bd6088095a6dcf130421) Release v22.2.2 - [`95c7e5e`](https://github.com/facebook/jest/commit/95c7e5eee104d6e0b573ec8fcc446e78458a4cf3) Scripts standardize file names: Fix file names in scripts directory (#5511) - [`09adc31`](https://github.com/facebook/jest/commit/09adc319e967748de424572495695a33e0e7925b) capitalize skipOnWindows variable -> SkipOnWindows (#5515) - [`f29c03e`](https://github.com/facebook/jest/commit/f29c03ea0c97d97aede05b5c1a97ce04a953d3f9) add methods to custom and buffered consoles (#5514) - [`af19110`](https://github.com/facebook/jest/commit/af191108302c719475aa34028a4ed46589b4cb9c) Documentation for Interactive Snapshot Update (#5291) - [`e9bf143`](https://github.com/facebook/jest/commit/e9bf1430843a2aff5f73bb8a3c01d276ad11631c) Add watchAll flag to jest-editor-support (#5523) - [`2d2fb5b`](https://github.com/facebook/jest/commit/2d2fb5bf321de937d3e304e39d37232991b5504e) refactor: strip <rootDir> from collectCoverageFrom values (#5524) - [`508f789`](https://github.com/facebook/jest/commit/508f789a8eb74bfce345556945d22cc32770f863) Add hyperlink to video URL (#5528) - [`55c342a`](https://github.com/facebook/jest/commit/55c342af240a8aa1acb487a253a6ade4a8a4f4a1) jest-haste-map: fix bug where platform-specific files are removed (#5534) - [`133a9a1`](https://github.com/facebook/jest/commit/133a9a1fbfb264ff0bc6649eb08fe46641101c21) support multiple glob patterns for collectCoverageFrom (#5537) - [`2df9e4c`](https://github.com/facebook/jest/commit/2df9e4cc4b93abc71659c216c07d1a6c78909f0b) Use preinstalled Yarn on Appveyor (#5548) - [`b69ac08`](https://github.com/facebook/jest/commit/b69ac08362aae5d23801f8b659d90e6feb4d5b5b) Use `cross-spawn` for running Yarn in integration tests (#5550) - [`d9b4f0c`](https://github.com/facebook/jest/commit/d9b4f0c78c56377ccdda1523217bb49bb0d5f2db) fix(watchman): Fix watchman checks on Windows (#5553) #### v22.4.0 - [`5f8ad63`](https://github.com/facebook/jest/commit/5f8ad6379ac3962cc1eb9ce25eef6f3e8fc241e0) Release v22.3.0 - [`c5fbd30`](https://github.com/facebook/jest/commit/c5fbd304c462e3c74c6cc5f5e7484e466c10521e) Use native trim instead of regexp (#5555) - [`5b00d97`](https://github.com/facebook/jest/commit/5b00d9785015f699d0207b95770916d28cf78271) Fix jest-circus setup logic (#5561) - [`1ee7df9`](https://github.com/facebook/jest/commit/1ee7df960e039a4f9033fcccfa471c1c47ccd81c) Optimize finding top frame in formatPaths (#5557) - [`84e9789`](https://github.com/facebook/jest/commit/84e97893cb744639a74e7ffa9d099e995bd6c4f2) Fix typo in JestObjectAPI.md (#5559) - [`4ca959b`](https://github.com/facebook/jest/commit/4ca959b041dcf6f2fe44fdebd7f86a4e0509e185) Revert setRawMode on --watch quit (fixes #5028) (#5029) - [`10276f9`](https://github.com/facebook/jest/commit/10276f90b264f8e02b2bb3b4f619095ac63cd59c) Standardize file names in integration-tests (#5513) - [`c35b78b`](https://github.com/facebook/jest/commit/c35b78b7c0e6f7944b5b52392efdb09abc860570) Use v8.serialize when available (#5565) - [`9d11ec4`](https://github.com/facebook/jest/commit/9d11ec4ee111df8a0925f34abb0a86e8920d59c7) Optimize getting stack trace in message-util (#5569) - [`71795a5`](https://github.com/facebook/jest/commit/71795a5bb07e877084ccf87f9826ba9176f65a8c) Use native trimLeft, trimRight instead of regexp (#5570) - [`146900f`](https://github.com/facebook/jest/commit/146900f5d36691ab706aafee19e747a4de6cdd71) Replace path sep for testRegex in should_instrument (#5560) - [`b9b1f0d`](https://github.com/facebook/jest/commit/b9b1f0d0709c2948bf5c5d198c0c54b904218b2b) Update TutorialReactNative.md (#5567) - [`fcdf071`](https://github.com/facebook/jest/commit/fcdf071955cf9ee4007226f15c91d7e483346973) docs: add jest-mongodb example (#5571) - [`d065e87`](https://github.com/facebook/jest/commit/d065e87a2322e1b4b70e7ba9de3c24aed7a2ea72) Issue #5197: Add descriptive error to Expect CalledWith methods when missing optional arguments (#5547) - [`966aab6`](https://github.com/facebook/jest/commit/966aab60faa1b0a8cfdd51b95bcca780c68001d7) Removing the mapCoverage condition on reading inlineSourceMaps. (#5177) - [`ba8a2d5`](https://github.com/facebook/jest/commit/ba8a2d5ccfb96987b30d9b808bf0961eae89d67b) Print deprecation warnings on CLI flags (#5536) - [`0285e63`](https://github.com/facebook/jest/commit/0285e63e903abbab9c323341e62eb68b29acd87e) Simplify check for -0 in printNumber (#5581) - [`e4f7d84`](https://github.com/facebook/jest/commit/e4f7d84568c16f692b08c954183ca524c14eced1) Update discord links, lint markdown (#5586) - [`4d4bc67`](https://github.com/facebook/jest/commit/4d4bc671297ad603cba38827f041eaef0c56f078) chore(website): Upgrade docusaurus to 1.0.6 (#5587) - [`950b2e7`](https://github.com/facebook/jest/commit/950b2e7825f872e54e9e639de64b8c7bab16642f) Don't skip configured matchers for exact file names (#5582) - [`430aebe`](https://github.com/facebook/jest/commit/430aebe49e9f144d29f144f5a29482315e269e4a) Simplify check -0 in jasmine-utils (#5592) - [`3a86707`](https://github.com/facebook/jest/commit/3a8670703af15d7371d6b5ee5c2e2ec3c0bf1f46) chore: make no-unused-vars eslint rule error (#5598) - [`e89de4e`](https://github.com/facebook/jest/commit/e89de4e6a9bbe72fb5ba86f254b55c9b3b220af3) Make it possible to merge `transform` option with preset (#5505) - [`4e4a9e0`](https://github.com/facebook/jest/commit/4e4a9e0fca190d0eafd4757a09eb1e3c9d35d00a) add a documentation note for project displayName configuration (#5600) - [`71c31d7`](https://github.com/facebook/jest/commit/71c31d76be116764b44dff0318d5c4d7ae8300f1) docs: link to full list of matchers in opening paragraph (#5606) - [`402a6fe`](https://github.com/facebook/jest/commit/402a6feb7a6db7124c9802901232e973458e5d4c) chore(deps): upgrade flow to 0.66 (#5602) - [`e2bb8f4`](https://github.com/facebook/jest/commit/e2bb8f41c925c65ab13ad7c935692abce41cc64e) Optimize print calls in spy matches (#5596) - [`0b88438`](https://github.com/facebook/jest/commit/0b8843836fdb627b84ceab79eb170bf162a1207c) url and name fix (#5608) - [`f5879c0`](https://github.com/facebook/jest/commit/f5879c061313f287446e43cb6f1fbd79d7cefe5e) fix: make Errors match with ordinary objects (fixes #5359) (#5611) - [`9c0912c`](https://github.com/facebook/jest/commit/9c0912cf4ca66dcf720d3b37b4d36baf6f712aac) fix: correcting a mislabeled CHANGELOG.md entry (#5614) - [`bea889c`](https://github.com/facebook/jest/commit/bea889c9d8ccb74dc148380b4ab4b649746ea0ef) Avoid loading files that we know are binary ahead of time (#5612) - [`3a2854a`](https://github.com/facebook/jest/commit/3a2854aeca669b6cd82139de23333fa18fce7c6c) Add jest-serializer module (#5609) - [`adbd927`](https://github.com/facebook/jest/commit/adbd927987b7a4cbd937464ab038b6ee29d83554) fix(watchman): Overhauls how Watchman crawler works fixing Windows (#5615) - [`593d801`](https://github.com/facebook/jest/commit/593d801340f93222f567576204dd32bc08272bd4) fix console & buffered console assert behaviour (#5576) - [`9df3035`](https://github.com/facebook/jest/commit/9df3035829299a93579bad8cfb1db2081617ea6e) Explain manual mocking modules (#5616) #### v22.4.1 - [`acb7f64`](https://github.com/facebook/jest/commit/acb7f64ba0eb1b4a7a3801a01977cf1bb2a54e72) Release v22.4.0 - [`4576dd4`](https://github.com/facebook/jest/commit/4576dd4ea448bfb2501cd1a664dca2aaa84e9187) Provide `require.main` property (#5618) - [`da90886`](https://github.com/facebook/jest/commit/da908862ad5a28155ca7901f8443033e17c8d9ec) Add note about Node version support in README and docs. Fixes #4947 (#5622) - [`6ee2a14`](https://github.com/facebook/jest/commit/6ee2a14b83393c9e3e3408beb5c4848489f04cf6) Update to docs to use yarn (#5624) - [`79533a9`](https://github.com/facebook/jest/commit/79533a90aefc94d0ee6029a7c6ab97071b2c6b1c) Small polish to the plugins API (#5572) - [`ca8910f`](https://github.com/facebook/jest/commit/ca8910f3b2b7cd57e34ec8e2b6dea684a882160f) Remove debug snapshot (#5627) - [`7bcdc8c`](https://github.com/facebook/jest/commit/7bcdc8c2305c06204f23da615590145c8db6f19b) Examples/standardize folder names (#5626) - [`6ab04b7`](https://github.com/facebook/jest/commit/6ab04b79e8f70b5f3e6a6d0d0f8874e72d73070e) add versioned documentation to the website (#5541) - [`23eec74`](https://github.com/facebook/jest/commit/23eec748db0de7b6b5fcda28cc51c48ddae16545) [WIP] Remove usage of `retainLines` (#5594) - [`4b6f850`](https://github.com/facebook/jest/commit/4b6f8506520b17ded174a2609ec6052b6a792db8) Update documentation on automocking (#5630) - [`1203ed6`](https://github.com/facebook/jest/commit/1203ed6ebeffe1edb7d1aa6c9ef0bd3cde8d92cf) [jest-editor-support] update TypeScript definition (#5625) - [`67d1e47`](https://github.com/facebook/jest/commit/67d1e470a8de8e4332831db5a4191a4147d6410d) Add how to mock scoped modules to Manual Mocks doc (#5638) - [`e9825d3`](https://github.com/facebook/jest/commit/e9825d3990bd82cd0c22cebcf9f62b688cc5dc0b) update istanbul-api (#5637) - [`497be76`](https://github.com/facebook/jest/commit/497be7627ef851c947da830d4a8e21046f847a78) Jest got too popular (#5639) - [`f020182`](https://github.com/facebook/jest/commit/f020182451e934221dedd92d2f550c55126f0985) fix(watchman): Parallelize Watchman calls in crawler again (#5640) #### v22.4.2 - [`52bbb26`](https://github.com/facebook/jest/commit/52bbb26615d1d6f150082873a3346db17b158df9) Release v22.4.1 - [`cdd5dfe`](https://github.com/facebook/jest/commit/cdd5dfea815bd043703c991dcca2051458d7ee75) Force haste map regeneration on deserialization error (#5642)This PR has been generated by Renovate Bot.