Snyk has created this PR to upgrade jest from 27.0.6 to 27.3.1.
:information_source: Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.
The recommended version is 10 versions ahead of your current version.
The recommended version was released 2 months ago, on 2021-10-19.
[jest-haste-map] Use watchman suffix-set option for faster file indexing. (#11784)
[jest-cli] Adds a new config options snapshotFormat which offers a way to override any of the formatting settings which come with pretty-format. (#11654)
[jest-reporters] Expose the getSummary util (#11695).
[jest-resolver] Support node: prefix when importing Node core modules (#11331)
Fixes
[jest-each] Relaxed the validation to allow multibyte characters in headings (#11575)
[jest-environment-jsdom] Add support for userAgent option (#11773)
[jest-environment-node] Add Event and EventTarget to node global environment. (#11727)
[jest-mock] Fix spyOn to use Object.prototype.hasOwnProperty (#11721)
[jest-resolver] Add dependency on jest-haste-map (#11759)
[jest-types] Compat with @ types/node v16 (#11645)
Chore & Maintenance
[docs] Correct expects.assertions documentation by adding async/await for asynchronous function.
Snyk has created this PR to upgrade jest from 27.0.6 to 27.3.1.
The recommended version fixes:
SNYK-JS-TMPL-1583443
Why? Proof of Concept exploit, CVSS 7.5
SNYK-JS-PROMPTS-1729737
Why? Proof of Concept exploit, CVSS 7.5
(*) Note that the real score may have changed since the PR was raised.
Release notes
Package name: jest
Fixes
[expect]
Makeexpect
extension propertiesconfigurable
(#11978)[expect]
Fix.any()
checks on primitive wrapper classes (#11976)Chore & Maintenance
[expect]
BigInt
global is always defined, don't check for its existence at runtime (#11979)[jest-config, jest-util]
Useci-info
instead ofis-ci
to detect CI environment (#11973)New Contributors
Full Changelog: v27.3.0...v27.3.1
Features
[jest-config]
AddtestEnvironmentOptions.html
to apply to jsdom input (#11950)[jest-resolver]
Support default export (.
) inexports
field ifmain
is missing (#11919)Fixes
[expect]
Tweak and improve types (#11949)[jest-runtime]
Ensure absolute paths can be resolved within test modules (#11943)[jest-runtime]
Fixinstanceof
forModernFakeTimers
andLegacyFakeTimers
methods (#11946)New Contributors
Full Changelog: v27.2.5...v27.3.0
Features
[jest-config]
Warn when multiple Jest configs are located (#11922)Fixes
[expect]
Pass matcher context to asymmetric matchers (#11926 & #11930)[expect]
Improve TypeScript types (#11931)[expect]
Improve typings oftoThrow()
andtoThrowError()
matchers (#11929)[jest-cli]
Improve--help
printout by removing defunct--browser
option (#11914)[jest-haste-map]
Use distinct cache paths for different values ofcomputeDependencies
(#11916)[@ jest/reporters]
Do not bufferconsole.log
s when using verbose reporter (#11054)Chore & Maintenance
[expect]
Export default matchers (#11932)[@ jest/types]
Mark deprecated configuration options as@ deprecated
(#11913)New Contributors
Full Changelog: v27.2.4...v27.2.5
Features
[expect]
Add equality checks for Array Buffers inexpect.ToStrictEqual()
(#11805)Fixes
[jest-snapshot]
Correctly indent inline snapshots (#11560)Features
[@ jest/fake-timers]
Update@ sinonjs/fake-timers
to v8 (#11879)Fixes
[jest-config]
ParsetestEnvironmentOptions
if received from CLI (#11902)[jest-reporters]
Calldestroy
onv8-to-istanbul
converters to free memory (#11896)Fixes
[jest-runtime]
CorrectwrapperLength
value for ESM modules. (#11893)Features
[jest-transform]
Improve the unexpected token error message. (#11807)Fixes
[jest-runtime]
Fix regression when usingjest.isolateModules
and mocks (#11882)[jest-runtime]
Include test name when importing modules after test has completed (#11885)[jest-runtime]
Error when ESM import is used after test is torn down (#11885)Features
[jest-resolver, jest-runtime]
Passconditions
to custom resolvers to enable them to implement support for package.jsonexports
field (#11859)[jest-runtime]
Allow custom envs to specifyexportConditions
which is passed together with Jest's own conditions to custom resolvers (#11863)Fixes
[@ jest/reporters]
Use async transform if available to transform files with no coverage (#11852)[jest-util]
Return correct value fromprocess.send
stub (#11799)Features
[jest-runtime]
Add experimental, limited (and undocumented) support for mocking ECMAScript Modules (#11818)Fixes
[jest-resolver]
Supportnode:
prefix when importing Node core modules with ESM (#11817)[jest-types]
Export thePrettyFormatOptions
interface (#11801)Features
[jest-haste-map]
Use watchman suffix-set option for faster file indexing. (#11784)[jest-cli]
Adds a new config optionssnapshotFormat
which offers a way to override any of the formatting settings which come with pretty-format. (#11654)[jest-reporters]
Expose thegetSummary
util (#11695).[jest-resolver]
Supportnode:
prefix when importing Node core modules (#11331)Fixes
[jest-each]
Relaxed the validation to allow multibyte characters in headings (#11575)[jest-environment-jsdom]
Add support foruserAgent
option (#11773)[jest-environment-node]
AddEvent
andEventTarget
to node global environment. (#11727)[jest-mock]
FixspyOn
to useObject.prototype.hasOwnProperty
(#11721)[jest-resolver]
Add dependency onjest-haste-map
(#11759)[jest-types]
Compat with@ types/node
v16 (#11645)Chore & Maintenance
[docs]
Correctexpects.assertions
documentation by adding async/await for asynchronous function.Commit messages
Package name: jest
Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.
For more information:![](https://api.segment.io/v1/pixel/track?data=eyJ3cml0ZUtleSI6InJyWmxZcEdHY2RyTHZsb0lYd0dUcVg4WkFRTnNCOUEwIiwiYW5vbnltb3VzSWQiOiJlZTYxNmJhMi0xNDg5LTRlMDYtYTRjYi05OTQyYWM0NDIxNDUiLCJldmVudCI6IlBSIHZpZXdlZCIsInByb3BlcnRpZXMiOnsicHJJZCI6ImVlNjE2YmEyLTE0ODktNGUwNi1hNGNiLTk5NDJhYzQ0MjE0NSJ9fQ==)
🧐 View latest project report
🛠 Adjust upgrade PR settings
🔕 Ignore this dependency or unsubscribe from future upgrade PRs