Prisma-Examples
Prisma-Examples copied to clipboard
Upgrade all of jest to version 29.5.0
Here is everything you need to know about this upgrade. Please take a good look at what changed and the test results before merging this pull request.
What changed?
✳️ jest (^27.4.7 → ^29.5.0) · Repo · Changelog
Release Notes
29.5.0
Features
[jest-changed-files]
Support Sapling (#13941)[jest-circus, @jest/cli, jest-config]
Add feature to randomize order of tests via CLI flag or through the config file(#12922)[jest-cli, jest-config, @jest/core, jest-haste-map, @jest/reporters, jest-runner, jest-runtime, @jest/types]
AddworkerThreads
configuration option to allow using worker threads for parallelization (#13939)[jest-cli]
ExportyargsOptions
(#13970)[jest-config]
AddopenHandlesTimeout
option to configure possible open handles warning. (#13875)[@jest/create-cache-key-function]
Allow passinglength
argument tocreateCacheKey()
function and set its default value to16
on Windows (#13827)[jest-message-util]
Add support for AggregateError (#13946 & #13947)[jest-message-util]
Add support for Error causes intest
andit
(#13935 & #13966)[jest-reporters]
AddsummaryThreshold
option to summary reporter to allow overriding the internal threshold that is used to print the summary of all failed tests when the number of test suites surpasses it (#13895)[jest-runtime]
Expose@sinonjs/fake-timers
async APIs functionsadvanceTimersByTimeAsync(msToRun)
(tickAsync(msToRun)
),advanceTimersToNextTimerAsync(steps)
(nextAsync
),runAllTimersAsync
(runAllAsync
), andrunOnlyPendingTimersAsync
(runToLastAsync
) (#13981)[jest-runtime, @jest/transform]
Allow V8 coverage provider to collect coverage from files which were not loaded explicitly (#13974)[jest-snapshot]
Add support tocts
andmts
TypeScript files to inline snapshots (#13975)[jest-worker]
Addstart
method to worker farms (#13937)[jest-worker]
Support passing a URL as path to worker (#13982)Fixes
[babel-plugin-jest-hoist]
Fix unwanted hoisting of nestedjest
usages (#13952)[jest-circus]
Send test case results fortodo
tests (#13915)[jest-circus]
Update message printed on test timeout (#13830)[jest-circus]
Avoid creating the word "testfalse" whentakesDoneCallback
isfalse
in the message printed on test timeout AND updated timeouts test (#13954)[jest-environment-jsdom]
Stop settingdocument
tonull
on teardown (#13972)[@jest/expect-utils]
UpdatetoStrictEqual()
to be able to checkjest.fn().mock.calls
(#13960)[@jest/test-result]
AllowTestResultsProcessor
type to return a Promise (#13950)Chore & Maintenance
[jest-snapshot]
Remove dependency onjest-haste-map
(#13977)New Contributors
- @frosas made their first contribution in #13932
- @akshitsinha made their first contribution in #13915
- @trajano made their first contribution in #13827
- @DercilioFontes made their first contribution in #13954
- @jsnajdr made their first contribution in #13952
- @SteveFlames made their first contribution in #13895
- @willc001 made their first contribution in #13970
- @benjaminhobbs made their first contribution in #13901
Full Changelog: v29.4.3...v29.5.0
Does any of this look wrong? Please let us know.
Commits
See the full diff on Github. The new version differs by 36 commits:
v29.5.0
chore: update changelog for release
chore: roll new version of the documentation
feat(jest-runtime): expose `@sinonjs/fake-timers` async APIs (#13981)
Update toStrictEqual() to be able to check jest.fn().mock.calls etc. (#13960)
docs: add missing admonitions in Global API page (#13953)
feat(jest-worker): support passing a URL as path to worker (#13982)
fix(jest-runtime, @jest/transform): allow V8 coverage provider to collect coverage from files which were not loaded explicitly (#13974)
chore: tweak wording when using conflicting CLI arguments (#13901)
feat(jest-snapshot): add support to cts and mts typescript files to inline snapshots (#13975)
feat(jest-cli): Export yargsOptions (#13970)
chore(jest-snapshot): Remove hard dependency on `jest-haste-map` (#13977)
jest-environment-jsdom: stop setting document to null on teardown (#13972)
feat: add summaryThreshold option to summary reporter (#13895)
feat(jest-inline-message): Support Error.cause with jasmine too (#13966)
fix: correct overeager hoisting in `babel-plugin-jest-hoist` (#13952)
fix: Avoid creating the word testfalse in the message on test timeout (#13954)
fix(@jest/test-result): allow `TestResultsProcessor` type to return a Promise (#13950)
feat(jest-message-util): Add support for Error cause in `test` and `it` (#13935)
fix: make timeouts on a test refer to timeout parameter, rather than jest.setTimeout() (#13830)
refactor(jest-message-util): delete needless 'if' in AggregateError test (#13947)
jest-circus runs children in shuffled order (#12922)
feat(jest-config): `openHandlesTimeout` config option (#13875)
refactor(jest-runtime): do not call `resetAllMock()` during `teardown` (#13924)
docs: add missing admonitions in configuration page v25 (#13923)
docs: add missing admonitions in configuration page v26 (#13922)
docs: add missing admonitions in configuration page v27 (#13921)
fix: lower length of key to improve usage in win32 (#13827)
fix(jest-circus): Send test case results for todo type of tests (#13915)
docs: clarify how to disable watch mode through CLI (#13931)
feat(jest-message-util): add support for AggregateError (#13946)
feat(vcs): Support Sapling in jest-changed-files (#13941)
feat(jest-cli, jest-config, @jest/core, jest-haste-map, @jest/reporters, jest-runner, jest-runtime, @jest/types): add `workerThreads` configuration option (#13939)
feat(worker): add `start` method to worker farms (#13937)
Add missing --coverageDirectory documentation (#13932)
docs: add missing admonitions in configuration page v28 (#13920)
Depfu will automatically keep this PR conflict-free, as long as you don't add any commits to this branch yourself. You can also trigger a rebase manually by commenting with @depfu rebase
.
All Depfu comment commands
- @depfu rebase
- Rebases against your default branch and redoes this update
- @depfu recreate
- Recreates this PR, overwriting any edits that you've made to it
- @depfu merge
- Merges this PR once your tests are passing and conflicts are resolved
- @depfu close
- Closes this PR and deletes the branch
- @depfu reopen
- Restores the branch and reopens this PR (if it's closed)
- @depfu pause
- Ignores all future updates for this dependency and closes this PR
- @depfu pause [minor|major]
- Ignores all future minor/major updates for this dependency and closes this PR
- @depfu resume
- Future versions of this dependency will create PRs again (leaves this PR as is)