react-intl-cra
react-intl-cra copied to clipboard
chore(deps): update dependency jest to v24
This PR contains the following updates:
Package | Type | Update | Change | References |
---|---|---|---|---|
jest | devDependencies | major | 22.1.4 -> 24.7.1 |
homepage, source |
Release Notes
facebook/jest
v24.7.1
Fixes
-
[@jest/config]
NormalizetestSequencer
to its absolute path (#β8267) -
[@jest/console]
Print to stderr when callingconsole.error
,console.warn
orconsole.assert
using thejest-runtime
CLI (#β8261)
v24.7.0
Features
-
[@jest/core, @​jest/test-sequencer]
MovetestSequencer
to individual package@jest/test-sequencer
(#β8223) -
[@jest/core, jest-cli, jest-config]
Add optiontestSequencer
allow user use custom sequencer. (#β8223)
Fixes
-
[expect]
Add negative equality tests for iterables (#β8260) -
[jest-haste-map]
Resolve fs watcher EMFILE error (#β8258)
Chore & Maintenance
-
[expect]
Remove repetition of matcherName and options in matchers (#β8224)
Performance
v24.6.0
Features
-
[expect]
: Improve report when matcher fails, part 13 (#β8077) -
[@jest/core]
Filter API pre-filter setup hook (#β8142) -
[jest-snapshot]
Improve report when matcher fails, part 14 (#β8132) -
[@jest/reporter]
Display todo and skip test descriptions when verbose is true (#β8038) -
[jest-runner]
Support default exports for test environments (#β8163) -
[pretty-format]
Support React.Suspense (#β8180) -
[jest-snapshot]
Indent inline snapshots (#β8198) -
[jest-config]
Support colors indisplayName
configuration (#β8025)
Fixes
-
[jest-circus]
Fix test retries with beforeAll/beforeEach failures (#β8227) -
[expect]
Fix circular references in iterable equality (#β8160) -
[jest-changed-files]
Change method of obtaining git root (#β8052) -
[jest-each]
Fix test function type (#β8145) -
[jest-fake-timers]
getTimerCount
not taking immediates and ticks into account (#β8139) -
[jest-runtime]
Allow json file as manual mock (#β8159) -
[pretty-format]
PrintBigInt
as a readable number instead of{}
(#β8138) -
[jest-core]
Fix ability to transform dependencies required from globalSetup script (#β8143) -
[@jest/reporters]
Fix Cannot read property converageData of null (#β8168) -
[jest-worker]
JEST_WORKER_ID
starts at 1 (#β8205) -
[jest-config]
Use default cwd even if config contains a cwd property (#β7923) -
[jest-resolve-dependencies]
: Remove internal peer dependencies (#β8215) -
[jest-resolve]
: Remove internal peer dependencies (#β8215) -
[jest-snapshot]
: Remove internal peer dependencies (#β8215) -
[jest-resolve]
Fix requireActual with moduleNameMapper (#β8210) -
[jest-haste-map]
Fix haste map duplicate detection in watch mode (#β8237)
Chore & Maintenance
-
[*]
Remove flow from code base (#β8061) -
[*]
Use property initializer syntax in Jest codebase (#β8117) -
[*]
Move @βtypes/node to the root package.json (#β8129) -
[*]
Add documentation and tests related to auto-mocking (#β8099) -
[*]
Addjest-watch-typeahead
as a devDependency (#β6449) -
[*]
upgrade TS to 3.4.0-dev* for inceremental builds (#β8149) -
[docs]
Improve description of optional arguments in ExpectAPI.md (#β8126)
Performance
-
[jest-haste-map]
Optimize haste map data structure for serialization/deserialization (#β8171) -
[jest-haste-map]
Avoid persisting haste map or processing files when not changed (#β8153) -
[jest-core]
Improve performance of SearchSource.findMatchingTests by 15% (#β8184) -
[jest-resolve]
Optimize internal cache lookup performance (#β8183) -
[jest-core]
Dramatically improve watch mode performance (#β8201) -
[jest-transform]
Cache regular expression instead of creating anew for every file in ScriptTransformer (#β8235) -
[jest-core]
Fix memory leak of source map info and minor performance improvements (#β8234) -
[jest-console]
Fix memory leak by releasing console output reference when printed to stdout (#β8233) -
[jest-runtime]
UseMap
instead ofObject
for module registry (#β8232)
v24.5.0
Features
-
[jest-haste-map]
ExposethrowOnModuleCollision
viaconfig.haste
(#β8113)
Chore & Maintenance
-
[expect]
ExportMatchers
interface fromexpect
(#β8093)
v24.4.0
Features
-
[jest-resolve]
Now supports PnP environment without plugins (#β8094)
Fixes
-
[expect]
Compare DOM nodes even if there are multiple Node classes (#β8064) -
[jest-worker]
worker.getStdout()
can returnnull
(#β8083) -
[jest-worker]
Re-attach stdout and stderr from new processes/threads created after retries (#β8087) -
[jest-reporters/jest-runner]
SerializechangedFiles
passed to workers (#β8090)
Chore & Maintenance
-
[*]
Make sure to included.ts
files in the tarball when building (#β8086)
v24.3.1
Fixes
-
[jest-cli]
export functions compatible withimport {default}
(#β8080) -
[jest-worker]
: Fix retries and error notification in workers (#β8079)
Chore & Maintenance
-
[pretty-format]
: Usereact-is
instead of manual$typeof
checks (#β8060)
v24.3.0
We skipped 24.2.0 because a draft was accidentally published. Please use 24.3.0
or a newer version instead.
Features
-
[expect]
: Improve report when matcher fails, part 10 (#β7960) -
[expect]
: Improve report when matcher fails, part 11 (#β8008) -
[expect]
: Improve report when matcher fails, part 12 (#β8033) -
[expect]
: Improve report when matcher fails, part 7 (#β7866) -
[expect]
: Improve report when matcher fails, part 8 (#β7876) -
[expect]
: Improve report when matcher fails, part 9 (#β7940) -
[jest-circus/jest-jasmine2]
Warn if describe returns a value (#β7852) -
[jest-config]
Print error information on preset normalization error (#β7935) -
[jest-get-type]
AddisPrimitive
function (#β7708) -
[jest-haste-map]
AddskipPackageJson
option (#β7778) -
[jest-util]
AddisPromise
(#β7852) -
[pretty-format]
SupportReact.memo
(#β7891)
Fixes
-
[expect]
FixtoStrictEqual
not considering arrays with objects having undefined values correctly (#β7938) -
[expect]
Fix custom async matcher stack trace (#β7652) -
[expect]
Fix non-object received value in toHaveProperty (#β7986, #β8067) -
[expect]
Fix non-symmetric equal for Number (#β7948) -
[expect]
Remove duck typing and obsolete browser support code when comparing DOM nodes and use DOM-Level-3 API instead (#β7995) -
[jest-changed-files]
FixgetChangedFilesFromRoots
to not return parts of the commit messages as if they were files, when the commit messages contained multiple paragraphs (#β7961) -
[jest-changed-files]
Fix pattern for HG changed files (#β8066) -
[jest-changed-files]
Improve default file selection for Mercurial repos (#β7880) -
[jest-circus]
Fix bug with test.only (#β7888) -
[jest-circus]
: Throw explicit error when errors happen after test is considered complete (#β8005) -
[jest-cli]
Fix prototype pollution vulnerability in dependency (#β7904) -
[jest-cli]
Refactor-o
and--coverage
combined (#β7611) -
[jest-environment-node]
Add missing globals: TextEncoder and TextDecoder (#β8022) -
[jest-haste-map]
Enforce uniqueness in names (mocks and haste ids) (#β8002) -
[jest-jasmine2]
: Throw explicit error when errors happen after test is considered complete (#β8005) -
[jest-mock]
Adds a type check toprototype
to allow mocks of objects with a primitiveprototype
property. (#β8040) -
[jest-transform]
Normalize config and remove unnecessary checks, convertTestUtils.js
to TypeScript (#β7801) -
[jest-util]
Make sure to not fail if unable to assigntoStringTag
to theprocess
object, which is read only in Node 12 (#β8050) -
[jest-validate]
Fix validating async functions (#β7894) -
[jest-worker]
Fixjest-worker
when using pre-allocated jobs (#β7934) -
[static]
Remove console log '-' on the front page (#β7977)
Chore & Maintenance
-
[*]
: Setup building, linting and testing of TypeScript (#β7808, #β7855, #β7951) -
[@jest/console]
: Extract customconsole
implementations fromjest-util
into a new separate package (#β8030) -
[@jest/core]
Create new package, which isjest-cli
minusyargs
andprompts
(#β7696) -
[@jest/core]
: Migrate to TypeScript (#β7998) -
[@jest/fake-timers]
: Extract FakeTimers class fromjest-util
into a new separate package (#β7987) -
[@jest/reporter]
: New package extracted fromjest-cli
(#β7902) -
[@jest/reporters]
: Migrate to TypeScript (#β7994, #β8045) -
[@jest/source-map]
: ExtractgetCallsite
function fromjest-util
into a new separate package (#β8029) -
[@jest/test-result]
: Extract TestResult types and helpers into a new separate package (#β8034) -
[@jest/transform]
: Migrate to TypeScript (#β7918, #β7945) -
[@jest/transform]
: New package extracted fromjest-runtime
(#β7915) -
[@jest/types]
: New package to handle shared types (#β7834) -
[babel-jest]
: Migrate to TypeScript (#β7862) -
[babel-plugin-jest-hoist]
: Migrate to TypeScript (#β7898) -
[diff-sequences]
: Migrate to Typescript (#β7820) -
[docs]
Add missing import to docs (#β7928) -
[docs]
Update automock configuration, add note related to manual mocks (#β8051) -
[docs]
Update/Organize TestSequencer and testSchedulerHelper code comments(#β7984) -
[docs]
: Fix image paths in SnapshotTesting.md for current and version 24 (#β7872) -
[docs]
: Improve runAllTimers doc (it exhausts the micro-task queue) (#β8031) -
[docs]
: Update CONTRIBUTING.md to add information about running jest withjest-circus
locally (#β8013). -
[expect]
: Migrate to TypeScript (#β7919, #β8028) -
[jest-changed-files]
: Migrate to TypeScript (#β7827) -
[jest-circus]
: Migrate to TypeScript (#β7916) -
[jest-cli]
: Migrate to TypeScript (#β8024) -
[jest-diff]
: Migrate to TypeScript (#β7824, #β8027) -
[jest-docblock]
: Migrate to TypeScript (#β7836) -
[jest-each]
: Migrate to Typescript (#β8007) -
[jest-each]
: Refactor into multiple files with better types (#β8018) -
[jest-environment-jsdom]
: Migrate to TypeScript (#β7985) -
[jest-environment-node]
: Migrate to TypeScript (#β7985) -
[jest-get-type]
: Migrate to TypeScript (#β7818) -
[jest-haste-map]
: Migrate to TypeScript (#β7854, #β7951) -
[jest-jasmine2]
: TS migration (#β7970) -
[jest-leak-detector]
: Migrate to TypeScript (#β7825) -
[jest-matcher-utils]
: Migrate to TypeScript (#β7835) -
[jest-message-util]
: Migrate to TypeScript (#β7834) -
[jest-mock]
: Migrate to TypeScript (#β7847, #β7850, #β7971) -
[jest-phabricator]
: Migrate to TypeScript (#β7965) -
[jest-regex-util]
: Migrate to TypeScript (#β7822) -
[jest-repl]
: Migrate to TypeScript (#β8000) -
[jest-resolve-dependencies]
: Migrate to TypeScript (#β7922) -
[jest-resolve]
: Migrate to TypeScript (#β7871) -
[jest-runner]
: Migrate to TypeScript (#β7968) -
[jest-runtime]
: Migrate to TypeScript (#β7964, #β7988) -
[jest-serializer]
: Migrate to TypeScript (#β7841) -
[jest-snapshot]
: Migrate to TypeScript (#β7899) -
[jest-util]
: Migrate to TypeScript (#β7844, #β8021) -
[jest-validate]
: Migrate to TypeScript (#β7991) -
[jest-watcher]
: Migrate to TypeScript (#β7843) -
[jest-worker]
: Migrate to TypeScript (#β7853) -
[jest]
: Migrate to TypeScript (#β8024) -
[pretty-format]
: Migrate to TypeScript (#β7809, #β7809)
Performance
-
[jest-haste-map]
Optimize haste map tracking of deleted files with Watchman. (#β8056)
v24.1.0
Features
-
[jest-resolve]
: Pass default resolver into custom resolvers (#β7714) -
[jest-cli]
:global{Setup,Teardown}
use default export with es modules (#β7750) -
[jest-runtime]
Better error messages when the jest environment is used after teardown by async code (#β7756) -
[jest-jasmine2]
Will now only execute at most 5 concurrent tests within the same testsuite when usingtest.concurrent
(#β7770) -
[jest-circus]
Same as[jest-jasmine2]
, only 5 tests will run concurrently by default (#β7770) -
[jest-config]
A newmaxConcurrency
option allows to change the number of tests allowed to run concurrently (#β7770)
Fixes
-
[jest-runtime]
Fix for mocks not working with module name mapper (#β7787) -
[jest-cli]
Break dependency cycle when using Jest programmatically (#β7707) -
[jest-config]
Extract setupFilesAfterEnv from preset (#β7724) -
[jest-cli]
Do not execute anyglobalSetup
orglobalTeardown
if there are no tests to execute (#β7745) -
[jest-runtime]
Lock down version ofwrite-file-atomic
(#β7725) -
[jest-cli]
Print log entries when logging happens after test environment is torn down (#β7731) -
[jest-config]
Do not use a uuid asname
since that breaks caching (#β7746) -
[jest-config]
Make surenormalize
can consumeDefaults
without warnings (#β7742) -
[jest-config]
AllowmoduleFileExtensions
without 'js' for custom runners (#β7751) -
[jest-cli]
Load transformers before installing require hooks (#β7752 -
[jest-cli]
Handle missingnumTodoTests
in test results (#β7779) -
[jest-runtime]
Exclude setup/teardown files from coverage report (#β7790 -
[babel-jest]
Throw an error ifbabel-jest
tries to transform a file ignored by Babel (#β7797) -
[babel-plugin-jest-hoist]
Ignore TS type references when looking for out-of-scope references (#β7799 -
[expect]
fixed asymmetrical equality of cyclic objects (#β7730)
Chore & Maintenance
-
[jest]
Update jest-junit to ^6.2.1 (#β7739) -
[website]
Fix broken help link on homepage (#β7706) -
[docs]
Changed Babel setup documentation to correctly compileasync/await
(#β7701)
v24.0.0
Features
-
[jest-each]
[BREAKING] Add primitive pretty printing for interpolated titles (#β7694) -
[jest-runtime]
Addjest.isolateModules
for scoped module initialization (#β6701) -
[jest-diff]
[BREAKING] Support diffing numbers and booleans instead of returning null for different ones (#β7605) -
[jest-diff]
[BREAKING] Replacediff
withdiff-sequences
package (#β6961) -
[jest-cli]
[BREAKING] Only set error process error codes when they are non-zero (#β7363) -
[jest-config]
[BREAKING] DeprecatesetupTestFrameworkScriptFile
in favor of newsetupFilesAfterEnv
(#β7119) -
[jest-worker]
[BREAKING] Add functionality to call asetup
method in the worker before the first call and ateardown
method when ending the farm (#β7014) -
[jest-config]
[BREAKING] Set defaultnotifyMode
tofailure-change
(#β7024) -
[jest-haste-map]
[BREAKING] Remove support for@providesModule
(#β6104) -
[jest-haste-map]
[BREAKING] Replace internal data structures to improve performance (#β6960) -
[jest-haste-map]
[BREAKING] Use relative paths to allow remote caching (#β7020) -
[jest-haste-map]
[BREAKING] Remove name from hash inHasteMap.getCacheFilePath
(#β7218) -
[babel-preset-jest]
[BREAKING] Export a function instead of an object for Babel 7 compatibility (#β7203) -
[jest-haste-map]
[BREAKING] Expose relative paths when getting the file iterator (#β7321) -
[jest-cli]
[BREAKING] Run code transforms overglobal{Setup,Teardown}
(#β7562) -
[jest-haste-map]
AddhasteFS.getSize(path)
(#β7580) -
[jest-cli]
Print version ending in-dev
when running a local Jest clone (#β7582) -
[jest-cli]
Add Support forglobalSetup
andglobalTeardown
in projects (#β6865) -
[jest-runtime]
AddextraGlobals
to config to load extra global variables into the execution vm (#β7454) -
[jest-util]
ExportspecialChars
containing Unicode characters and ANSI escapes for console output (#β7532) -
[jest-config]
Handle typescript (ts
andtsx
) by default (#β7533) -
[jest-validate]
Add support for comments inpackage.json
using a"//"
key (#β7295) -
[jest-config]
Add shorthand for watch plugins and runners (#β7213) -
[jest-jasmine2/jest-circus/jest-cli]
Add test.todo (#β6996) -
[pretty-format]
Option to not escape strings in diff messages (#β5661) -
[jest-haste-map]
AddgetFileIterator
toHasteFS
for faster file iteration (#β7010) -
[jest-config]
AddreadConfigs
function, previously injest-cli
(#β7096) -
[jest-snapshot]
Enable configurable snapshot paths (#β6143) -
[pretty-format]
Support HTMLCollection and NodeList in DOMCollection plugin (#β7125) -
[jest-runtime]
Pass the normalized configuration to script transformers (#β7148) -
[expect]
Improve report when assertion fails, part 3 (#β7152) -
[jest-runtime]
Ifrequire
fails without a file extension, print all files that match with one (#β7160) -
[jest-haste-map]
MakeignorePattern
optional (#β7166) -
[jest-haste-map]
AddgetCacheFilePath
to get the path to the cache file for aHasteMap
instance (#β7217) -
[jest-runtime]
RemovecacheDirectory
fromignorePattern
forHasteMap
if not necessary (#β7166) -
[jest-validate]
Add syntax to validate multiple permitted types (#β7207) -
[jest-config]
Accept an array as as well as a string fortestRegex
([#β7209]#β7209)) -
[expect/jest-matcher-utils]
Improve report when assertion fails, part 4 (#β7241) -
[expect/jest-matcher-utils]
Improve report when assertion fails, part 5 (#β7557) -
[expect]
Check constructor equality in .toStrictEqual() (#β7005) -
[jest-util]
Addjest.getTimerCount()
to get the count of scheduled fake timers (#β7285) -
[jest-config]
AdddependencyExtractor
option to use a custom module to extract dependencies from files (#β7313, #β7349, #β7350, #β7362) -
[jest-haste-map]
Accept agetCacheKey
method inhasteImplModulePath
modules to reset the cache when the logic changes (#β7350) -
[jest-config]
Addhaste.computeSha1
option to compute the sha-1 of the files in the haste map (#β7345) -
[expect]
expect(Infinity).toBeCloseTo(Infinity)
TreatsInfinity
as equal in toBeCloseTo matcher (#β7405) -
[jest-worker]
Add node worker-thread support to jest-worker (#β7408) -
[jest-config]
Allowbail
setting to be configured with a number allowing tests to abort aftern
of failures (#β7335) -
[jest-config]
Allow % based configuration of--max-workers
(#β7494) -
[jest-runner]
Instantiate the test environment class with the currenttestPath
(#β7442) -
[jest-config]
Always resolve jest-environment-jsdom from jest-config (#β7476) -
[expect]
Improve report when assertion fails, part 6 (#β7621) -
[jest-worker]
AddenableWorkerThreads
option to explicitly opt-in toworker_threads
if available (#β7681)
Fixes
-
[expect]
Accept inherited properties intoHaveProperty
matcher (#β7686) -
[jest-diff]
Do not claim that-0
and0
have no visual difference (#β7605) -
[jest-mock]
Fix automock for numeric function names (#β7653) -
[jest-config]
EnsureexistsSync
is only called with a string parameter (#β7607) -
[expect]
toStrictEqual
considers sparseness of arrays. (#β7591) -
[jest-cli]
Fix empty coverage data for untested files (#β7388) -
[jest-cli]
[BREAKING] Do not usetext-summary
coverage reporter by default if other reporters are configured (#β7058) -
[jest-mock]
[BREAKING] Fix bugs with mock/spy result tracking of recursive functions (#β6381) -
[jest-haste-map]
[BREAKING] Recover files correctly after haste name collisions are fixed (#β7329) -
[pretty-format]
[BREAKING] Omit non-enumerable symbol properties (#β7448) -
[*]
[BREAKING] Upgrade to Babel 7, dropping support for Babel 6 (#β7016) -
[jest-cli]
Avoid watch mode causing bad terminal behavior in some cases (#β7523) -
[jest-runner/jest-worker]
Fix missing console output in verbose mode (#β6871) -
[expect]
Standardize file naming inexpect
(#β7306) -
[jest-each]
Add empty array validation check (#β7249) -
[jest-cli]
Interrupt tests if interactive watch plugin key is pressed (#β7222) -
[jest-each]
Add each array validation check (#β7033) -
[jest-haste-map]
Do not visit again files with the same sha-1 (#β6990) -
[jest-jasmine2]
Fix memory leak in Error objects hold by the framework (#β6965) -
[jest-haste-map]
Fixed Haste whitelist generation for scoped modules on Windows (#β6980) -
[jest-mock]
Fix inheritance of static properties and methods in mocks (#β7003) -
[jest-mock]
Fix mocking objects withoutObject.prototype
in their prototype chain (#β7003) -
[jest-mock]
Check_isMockFunction
is true rather than truthy on potential mocks (#β7017) -
[jest-cli]
Update jest-cli to show git ref in message when usingchangedSince
(#β7028) -
[jest-jasmine2
] Fix crash when test return Promise rejected with null (#β7049) -
[jest-runtime]
Check_isMockFunction
is true rather than truthy on potential global mocks (#β7017) -
[jest-jasmine]
Show proper error message from asyncassert
errors (#β6821) -
[jest-jasmine2]
Better error message when a describe block is empty (#β6372) -
[jest-jasmine2]
Pending calls inside async tests are reported as pending not failed (#β6782) -
[jest-circus]
Better error message when a describe block is empty (#β6372) -
[jest-jasmine2]
Add missing testLocationResults forxit
andfit
(#β6482) -
[expect]
Return false from asymmetric matchers if received value isnβt string (#β7107) -
[jest-cli]
Fix unhandled error when a bad revision is provided tochangedSince
(#β7115) -
[jest-config]
Moved dynamically assignedcwd
fromjest-cli
to default configuration injest-config
(#β7146) -
[jest-config]
FixgetMaxWorkers
on termux (#β7154) -
[jest-runtime]
Throw an explicit error ifjs
is missing frommoduleFileExtensions
(#β7160) -
[jest-runtime]
Fix missing coverage when using negative glob pattern intestMatch
(#β7170) -
[*]
EnsuremaxWorkers
is at least 1 (was 0 in some cases where there was only 1 CPU) (#β7182) -
[jest-runtime]
Fix transform cache invalidation when requiring a test file from multiple projects (#β7186) -
[jest-changed-files]
Return correctly the changed files when usinglastCommit=true
on Mercurial repositories (#β7228) -
[babel-jest]
Cache includes babel environment variables (#β7239) -
[jest-config]
Use strings instead ofRegExp
instances in normalized configuration (#β7251) -
[jest-circus]
Make sure to display real duration even if time is mocked (#β7264) -
[expect]
Improves the failing message fortoStrictEqual
matcher. (#β7224) -
[expect]
Improves the failing message fortoEqual
matcher. (#β7325) -
[jest-resolve]
Fix not being able to resolve path to mapped file with custom platform (#β7312) -
[jest-message-util]
Improve parsing of error messages for unusually formatted stack traces (#β7319) -
[jest-runtime]
Ensure error message text is not lost on errors with code frames (#β7319) -
[jest-haste-map]
Fix to resolve path that is start with words same as rootDir (#β7324) -
[expect]
Fix toMatchObject matcher when used withObject.create(null)
(#β7334) -
[jest-haste-map]
Remove legacy condition for duplicate module detection (#β7333) -
[jest-haste-map]
Fixrequire
detection with trailing commas and ignoreimport typeof
modules (#β7385) -
[jest-cli]
Fix to set prettierPath via config file (#β7412) -
[expect]
Test more precisely for class instance getters (#β7477) -
[jest-cli]
Support dashed args (#β7497) -
[jest-cli]
Fix to run in band tests if watch mode enable when runInBand arg used (#β7518) -
[jest-runtime]
Fix mistake as test files when run coverage issue. (#β7506) -
[jest-cli]
print info about passWithNoTests flag (#β7309) -
[pretty-format]
Omit unnecessary symbol filter for object keys (#β7457) -
[jest-runtime]
FixrequireActual
on node_modules with mock present (#β7404) -
[jest-resolve]
FixisBuiltinModule
to support versions of node withoutmodule.builtinModules
(#β7565) -
[babel-jest]
Setcwd
to be resilient to it changing during the runtime of the tests (#β7574) -
[jest-snapshot]
Write and read snapshots from disk even iffs
is mocked (#β7080) -
[jest-config]
Normalizeconfig.cwd
andconfig.rootDir
using `realpath (#β7598) -
[jest-environment-node]
Fix buffer property is not ArrayBuffer issue. (#β7626) -
[babel-plugin-jest-hoist]
Ignore TS type annotations when looking for out-of-scope references (#β7641) -
[jest-config]
Add name to project if one does not exist to pick correct resolver (#β5862) -
[jest-runtime]
PasswatchPathIgnorePatterns
to Haste instance (#β7585) -
[jest-runtime]
Resolve mock files via Haste when usingrequire.resolve
(#β7687)
Chore & Maintenance
-
[*]
[BREAKING] Require Node.js 6+ for all packages (#β7258) -
[jest-util]
[BREAKING] Remove long-deprecated globals for fake timers (#β7285) -
[*]
[BREAKING] Upgrade to Micromatch 3 (#β6650) -
[*]
[BREAKING] Remove regenerator-runtime injection (#β7595) -
[jest-worker]
Disableworker_threads
to avoid issues with libraries to ready for it (#β7681) -
[docs]
Fix message property in custom matcher example to return a function instead of a constant. (#β7426) -
[jest-circus]
Standardize file naming injest-circus
(#β7301) -
[docs]
Add synchronous test.each setup (#β7150) -
[docs]
Addthis.extend
to the Custom Matchers API reference (#β7130) -
[docs]
Fix default value forcoverageReporters
value in configuration docs (#β7126) -
[docs]
Add link for jest-extended in expect docs (#β7078) -
[jest-util]
Add ErrorWithStack class (#β7067) -
[docs]
Document--runTestsByPath
CLI parameter (#β7046) -
[docs]
Fix babel-core installation instructions (#β6745) -
[docs]
Explain how to rewrite assertions to avoid large irrelevant diff (#β6971) -
[examples]
add example using Babel 7 (#β6983) -
[docs]
Replace shallow equality with referential identity inExpectAPI.md
(#β6991) -
[jest-changed-files]
Refactor to useexeca
overchild_process
(#β6987) -
[*]
Bump dated dependencies (#β6978) -
[scripts]
Donβt make empty sub-folders for ignored files in build folder (#β7001) -
[docs]
Add missing export statement inpuppeteer_environment.js
underdocs/Puppeteer.md
(#β7127) -
[docs]
Removed useless expect.assertions inTestingAsyncCode.md
(#β7131) -
[docs]
Remove references to@providesModule
which isn't supported anymore (#β7147) -
[docs]
UpdatesetupFiles
documentation for clarity (#β7187) -
[docs]
Changerequire.require*
tojest.require*
(#β7210) -
[jest-circus]
Add readme.md (#β7198) -
[jest-editor-support]
Remove from the repository (#β7232) -
[jest-test-typescript-parser]
Remove from the repository (#β7232) -
[tests]
Free tests from the dependency on value of FORCE_COLOR (#β6585) -
[*]
Add babel plugin to make sure Jest is unaffected by fake Promise implementations (#β7225) -
[docs]
Add correct default value fortestUrl
config option (#β7277) -
[docs]
Remove duplicate code inMockFunctions
(#β7297) -
[*]
Add check for Facebook copyright headers on CI (#β7370) -
[*]
Update Facebook copyright headers (#β7589) -
[jest-haste-map]
RefactordependencyExtractor
and tests (#β7385) -
[docs]
Clearify conditional setting ofNODE_ENV
(#β7369) -
[docs]
Clarify conditional setting ofNODE_ENV
(#β7369) -
[*]
Standardize file names (#β7316, #β7266, #β7238, #β7314, #β7467, #β7464), #β7471) -
[docs]
AddtestPathIgnorePatterns
in CLI documentation (#β7440) -
[docs]
Removed misleading text aboutdescribe()
grouping together tests into a test suite (#β7434) -
[diff-sequences]
Add performance benchmark to package (#β7603) -
[*]
Replace as manyObject.assign
with object spread as possible (#β7627) -
[ci]
Initial support for Azure Pipelines (#β7556)
Performance
-
[jest-mock]
ImprovegetType
function performance. (#β7159)
v23.6.0
Features
-
[jest-cli]
AddchangedSince
to allowed watch mode configs (#β6955) -
[babel-jest]
Add support forbabel.config.js
added in Babel 7.0.0 (#β6911) -
[jest-resolve]
Add support for an experimentalmapper
option (Watchman crawler only) that adds virtual files to the Haste map (#β6940)
Fixes
-
[jest-resolve]
Only resolve realpath once in try-catch (#β6925) -
[expect]
Fix TypeError intoBeInstanceOf
onnull
orundefined
(#β6912) -
[jest-jasmine2]
Throw a descriptive error if the first argument supplied to a hook was not a function (#β6917) and (#β6931) -
[jest-circus]
Throw a descriptive error if the first argument supplied to a hook was not a function (#β6917) and (#β6931) -
[expect]
Fix variadic custom asymmetric matchers (#β6898) -
[jest-cli]
Fix incorrecttestEnvironmentOptions
warning (#β6852) -
[jest-each]
Prevent done callback being supplied to describe (#β6843) -
[jest-config]
Better error message for a case when a preset module was found, but nojest-preset.js
orjest-preset.json
at the root (#β6863) -
[jest-haste-map]
Catch crawler error when unsuccessfully reading directories (#β6761)
Chore & Maintenance
-
[docs]
Add custom toMatchSnapshot matcher docs (#β6837) -
[docs]
Improve the documentation regarding preset configuration (#β6864) -
[docs]
Clarify usage of--projects
CLI option (#β6872) -
[docs]
Correctfailure-change
notification mode (#β6878) -
[scripts]
Donβt remove node_modules from subdirectories of presets in e2e tests (#β6948) -
[diff-sequences]
Double-check number of differences in tests (#β6953)
v23.5.0
Features
-
[jest-cli]
Add package name toNotifyReporter
notification (#β5898) -
[jest-runner]
print stack trace whenprocess.exit
is called from user code (#β6714) -
[jest-each]
introduces%#
option to add index of the test to its title (#β6414) -
[pretty-format]
Support serializingDocumentFragment
(#β6705) -
[jest-validate]
Addrecursive
andrecursiveBlacklist
options for deep config checks (#β6802) -
[jest-cli]
Check watch plugins for key conflicts (#β6697)
Fixes
-
[jest-snapshot]
Mark snapshots as obsolete when moved to an inline snapshot (#β6773) -
[jest-config]
Fix--coverage
with--findRelatedTests
overwritingcollectCoverageFrom
options (#β6736) -
[jest-config]
Update default config for testURL from 'about:blank' to 'http://localhost' to address latest JSDOM security warning. (#β6792) -
[jest-cli]
FixtestMatch
not working with negations (#β6648) -
[jest-cli]
Don't report promises as open handles (#β6716) -
[jest-each]
Add timeout support to parameterised tests (#β6660) -
[jest-cli]
Improve the message when running coverage while there are no files matching global threshold (#β6334) -
[jest-snapshot]
Correctly merge property matchers with the rest of the snapshot intoMatchSnapshot
. (#β6528) -
[jest-snapshot]
Add error messages for invalid property matchers. (#β6528) -
[jest-cli]
Show open handles from inside test files as well (#β6263) -
[jest-haste-map]
Fix a problem where creating folders ending with.js
could cause a crash (#β6818)
Chore & Maintenance
-
[docs]
Document another option to avoid warnings with React 16 (#β5258) -
[docs]
Add note explaining whenjest.setTimeout
should be called (#β6817) -
[docs]
Fixed bug in example code (#β6828)
v23.4.2
Performance
-
[jest-changed-files]
limit git and hg commands to specified roots (#β6732)
Fixes
-
[jest-circus]
Fix retryTimes so errors are reset before re-running (#β6762) -
[docs]
Updateexpect.objectContaining()
description (#β6754) -
[babel-jest]
MakegetCacheKey()
take into accountcreateTransformer
options (#β6699) -
[jest-jasmine2]
Use prettier throughrequire
instead oflocalRequire
. FixesmatchInlineSnapshot
where prettier dependencies likepath
andfs
are mocked withjest.mock
. (#β6776) -
[docs]
Fix contributors link (#β6711) -
[website]
Fix website versions page to link to correct language (#β6734) -
[expect]
UpdatetoContain
suggestion to contain equal message (#β6792)
v23.4.1
Features
-
[jest-cli]
Watch plugins now have access to a broader range of global configuration options in theirupdateConfigAndRun
callbacks, so they can provide a wider set of extra features (#β6473) -
[jest-snapshot]
babel-traverse
is now passed tojest-snapshot
explicitly to avoid unnecessary requires in every test
Fixes
-
[jest-haste-map]
Optimize watchman crawler by usingglob
on initial query (#β6689) -
[pretty-format]
Fix formatting of invalid Date objects (#β6635)
v23.4.0
Features
-
[jest-haste-map]
AddcomputeDependencies
flag to avoid opening files if not needed (#β6667) -
[jest-runtime]
Supportrequire.resolve.paths
(#β6471) -
[jest-runtime]
Supportpaths
option forrequire.resolve
(#β6471)
Fixes
-
[jest-runner]
Force parallel runs for watch mode, to avoid TTY freeze (#β6647) -
[jest-cli]
properly reprint resolver errors in watch mode (#β6407) -
[jest-cli]
Write configuration to stdout when the option was explicitly passed to Jest (#β6447) -
[jest-cli]
Fix regression on non-matching suites (6657) -
[jest-runtime]
Roll backmicromatch
version to prevent regression when matching files (#β6661)
v23.3.0
Features
-
[jest-cli]
Allow watch plugin to be configured (#β6603) -
[jest-snapshot]
IntroducetoMatchInlineSnapshot
andtoThrowErrorMatchingInlineSnapshot
matchers (#β6380)
Fixes
-
[jest-regex-util]
Improve handling already escaped path separators on Windows (#β6523) -
[jest-cli]
FixtestNamePattern
value with interactive snapshots ([#β6579](https://togithub.com/facebook/jest/
Renovate configuration
:date: Schedule: At any time (no schedule defined).
:vertical_traffic_light: Automerge: Disabled by config. Please merge this manually once you are satisfied.
:recycle: Rebasing: Whenever PR becomes conflicted, or if you modify the PR title to begin with "rebase!
".
:no_bell: Ignore: Close this PR and you won't be reminded about this update again.
- [ ] If you want to rebase/retry this PR, check this box
This PR has been generated by Renovate Bot. View repository job log here.