Update testing-library monorepo (major)
This MR contains the following updates:
Package | Type | Update | Change |
---|---|---|---|
@testing-library/jest-dom | dependencies | major | ^5.14.1 -> ^6.0.0 |
@testing-library/react | dependencies | major | ^9.3.2 -> ^16.0.0 |
@testing-library/user-event | dependencies | major | ^7.1.2 -> ^14.0.0 |
Release Notes
testing-library/jest-dom (@testing-library/jest-dom)
v6.6.3
Bug Fixes
v6.6.2
Bug Fixes
v6.6.1
Bug Fixes
v6.6.0
Features
v6.5.0
Features
v6.4.8
Bug Fixes
v6.4.7
Bug Fixes
v6.4.6
Bug Fixes
- Support @starting-style (#602) (fd9ee68)
v6.4.5
Bug Fixes
v6.4.4
Bug Fixes
v6.4.3
Bug Fixes
v6.4.2
Bug Fixes
- Remove errant export of GetByRoleMatcher, fixing type checking in some TS configurations (#575) (a93c0c4)
v6.4.1
Bug Fixes
v6.4.0
Features
v6.3.0
Features
v6.2.1
Bug Fixes
v6.2.0
Features
v6.1.6
Bug Fixes
- Upgrade @adobe/css-tools to v4.3.2 (#553) (b64b953)
v6.1.5
Bug Fixes
v6.1.4
Bug Fixes
v6.1.3
Bug Fixes
- proper @jest/globals import (#530) (5b492ac)
v6.1.2
Bug Fixes
- bump @adobe/css-tools for ESM support (#525) (b959a68)
v6.1.1
Bug Fixes
v6.1.0
Features
- Publish ESM and CJS (https://github.com/testing-library/jest-dom/pull/519)
v6.0.1
Bug Fixes
v6.0.0
Features
- local types, supporting jest, @jest/globals, vitest (#511) (4b764b9)
BREAKING CHANGES
- Removes the extend-expect script. Users should use the default import path or one of the new test platform-specific paths to automatically extend the appropriate "expect" instance.
extend-expect was not documented in the Readme, so this change should have minimal impact.
Users can now use the following import paths to automatically extend "expect" for their chosen test platform:
- @testing-library/jest-dom - jest (@types/jest)
- @testing-library/jest-dom/jest-globals - @jest/globals
- @testing-library/jest-dom/vitest - vitest
For example:
import '@testing-library/jest-dom/jest-globals'
Importing from one of the above paths will augment the appropriate matcher interface for the given test platform, assuming the import is done in a .ts file that is included in the user's tsconfig.json.
It's also (still) possible to import the matchers directly without side effects:
import * as matchers from '@testing-library/jest-dom/matchers'
- Update kcd-scripts
- Drop node < 14
v5.17.0
Features
- New
toHaveAccessibleErrorMessage
better implementing the spec, deprecatetoHaveErrorMessage
(#503) (d717c66)
v5.16.5
Bug Fixes
- migrate ccs v3 to @adobe/css-tools v4 (#470) (948d90f)
v5.16.4
Bug Fixes
v5.16.3
Bug Fixes
v5.16.2
Bug Fixes
v5.16.1
Bug Fixes
v5.16.0
Features
v5.15.1
Bug Fixes
v5.15.0
Features
testing-library/react-testing-library (@testing-library/react)
v16.1.0
Features
v16.0.1
Bug Fixes
v16.0.0
Features
BREAKING CHANGES
-
@testing-library/dom
was moved to a peer dependency and needs to be explicitly installed. This reduces the chance of having conflicting versions of@testing-library/dom
installed that frequently caused bugs when used with@testing-library/user-event
. We will also be able to allow new versions of@testing-library/dom
being used without a SemVer major release of@testing-library/react
by just widening the peer dependency.@types/react-dom
needs to be installed if you're typechecking files using@testing-library/react
.
v15.0.7
Bug Fixes
v15.0.6
Bug Fixes
v15.0.5
Bug Fixes
v15.0.4
Bug Fixes
v15.0.3
Bug Fixes
v15.0.2
Bug Fixes
v15.0.1
Bug Fixes
v15.0.0
Release
BREAKING CHANGES
- Minimum supported Node.js version is 18.0
- New version of
@testing-library/dom
changes various roles. Check out the changed tests in https://github.com/testing-library/dom-testing-library/commit/2c570553d8f31b008451398152a9bd30bce362b3 to get an overview about what changed.
v14.3.1
Bug Fixes
v14.3.0
Features
v14.2.2
Bug Fixes
v14.2.1
Bug Fixes
v14.2.0
Features
v14.1.2
Bug Fixes
v14.1.1
Bug Fixes
v14.1.0
Features
v14.0.0
Bug Fixes
Features
- Bump
@testing-library/dom
to 9.0.0 (#1177) (6653c23) - Drop support for Node.js 12.x (#1169) (9b7a1e2)
BREAKING CHANGES
- See https://github.com/testing-library/dom-testing-library/releases/tag/v9.0.0
- Minimum supported Node.js version is now 14.x
v13.4.0
Features
v13.3.0
Features
v13.2.0
Features
v13.1.1
Bug Fixes
v13.1.0
Features
v13.0.1
Bug Fixes
- Specify a non-* version for @types/react-dom (#1040) (2a889e8)
v13.0.0
Features
BREAKING CHANGES
- Drop support for React 17 and earlier. We'll use the new
createRoot
API by default which comes with a set of changes while also enabling support for concurrent features. To opt-out of this change you can userender(ui, { legacyRoot: true } )
. But be aware that the legacy root API is deprecated in React 18 and its usage will trigger console warnings.
v12.1.5
Bug Fixes
v12.1.4
Bug Fixes
v12.1.3
Bug Fixes
v12.1.2
Bug Fixes
v12.1.1
Bug Fixes
v12.1.0
Features
v12.0.0
Bug Fixes
- Bump testing-library/dom to v8 alpha (#923) (770246e)
- Update @testing-library/dom (#931) (05c7421)
Features
- Bump @testing-library/dom (6e6bf85)
- Drop support for node 10 (#930) (42dad78)
BREAKING CHANGES
- Bump
@testing-library/dom
to 8.0.0. Please check out the@testing-library/dom@8.0.0
release page for a detailed list of breaking changes. - node 10 is no longer supported. It reached its end-of-life on 30.04.2021.
v11.2.7
Bug Fixes
v11.2.6
Bug Fixes
v11.2.5
Bug Fixes
v11.2.4
Bug Fixes
v11.2.3
Bug Fixes
v11.2.2
Bug Fixes
v11.2.1
Bug Fixes
v11.2.0
Features
v11.1.2
Bug Fixes
- import pretty-format from @testing-library/dom (#821) (2712dc2)
v11.1.1
Bug Fixes
- upgrade dependencies, typescript, @testing-library/dom etc (#816) (e07e641)
v11.1.0
Features
- bump @testing-library/dom to v7.26.0 (#799) (6b9a720)
v11.0.4
Bug Fixes
v11.0.3
Bug Fixes
v11.0.2
Bug Fixes
v11.0.1
Bug Fixes
v11.0.0
Features
BREAKING CHANGES
- cleanup is now synchronous and wraps the unmounting process in
act
.
v10.4.9
Bug Fixes
- Bump @testing-library/dom to 7.22.3 (#766) (276eb65)
v10.4.8
Bug Fixes
v10.4.7
Bug Fixes
v10.4.6
Bug Fixes
v10.4.5
Bug Fixes
v10.4.4
Bug Fixes
v10.4.3
Bug Fixes
v10.4.2
Bug Fixes
v10.4.1
Bug Fixes
- update @testing-library/dom to get a bug fix (6558845)
v10.4.0
Features
- force update of @testing-library/dom (d10a13d)
Latest DOM Testing Library release page: https://github.com/testing-library/dom-testing-library/releases/tag/v7.17.0
The big feature is fake timers working with async utils out of the box
v10.3.0
Features
v10.2.1
Bug Fixes
v10.2.0
Features
v10.1.0
Features
v10.0.6
Bug Fixes
- force update version of @testing-library/dom (#687) (c3008be)
v10.0.5
Bug Fixes
v10.0.4
Bug Fixes
v10.0.3
Bug Fixes
v10.0.2
Bug Fixes
v10.0.1
Bug Fixes
v10.0.0
Features
BREAKING CHANGES
Update DOM Testing Library
The latest version of DOM Testing Library has several breaking changes you will want to review the changelog of DOM Testing Library v7.0.0 to ensure you are unaffected.
Drop Node 8
Node 10 or greater is required. Node 8 is out of LTS (#576) (fccc2cf), closes #575
cleanup-after-each.js
remove deprecated This file which did nothing but log a warning to the console (#598) (7942f68)
- import '@​testing-library/react/cleanup-after-each'
+ // nothing! Just remove it
As a general reminder, you should NOT need to use cleanup
at all as this is done automatically for you (unless you're using @testing-library/react/pure
in which case you know what you're doing... keep using cleanup
).
testing-library/user-event (@testing-library/user-event)
v14.5.2
Bug Fixes
- remove interop and deep DTL imports (6a3c896)
v14.5.1
Bug Fixes
- incorrect default import from @testing-library/dom (#1162) (d7483f0)
v14.5.0
Bug Fixes
Features
v14.4.3
Bug Fixes
-
build: add
types
field inexports
(#1029) (5bed8c6) - remove circular dependencies (#1027) (1aa2027)
v14.4.2
Bug Fixes
v14.4.1
Bug Fixes
v14.4.0
Features
Bug Fixes
- event: be robust against incomplete event implementations (#1009) (289828b)
- upload: be robust against missing FileList implementation (#1007) (a46b4d7)
- keyboard: switch modifier state of lock keys on the correct event (#1003) (2852509)
-
keyboard: remove platform-specific additional key events for
Control
onAltGraph
(#1003) (2852509) -
pointer: dispatch
contextmenu
events withdetail: 0
(#1003) (2852509) -
pointer: always set
PointerEvent.isPrimary
(#1003) (2852509) -
pointer: set
button
property on pointer events separately from legacy mouse events (#1003) (2852509) -
pointer: click closest common ancestor if
mousedown
andmouseup
happen on different elements (#1003) (2852509) - pointer: omit click event on release if another button is released first (#1003) (2852509)
-
pointer: dispatch
mouseover
,mouseenter
andmousemove
on disabled elements (#1003) (2852509) -
pointer: prevent
mouse*
events perpointerdown
event handler (#1003) (2852509) -
pointer: dispatch
*out
and*over
events when moving into / out of nested elements (#1003) (2852509) -
pointer: dispatch
*enter
and*leave
events on ancestors (#1003) (2852509)
v14.3.0
Features
v14.2.6
Bug Fixes
- document: reduce impact of React@17 workaround (#992) (9816d38)
-
pointer: do not throw for
pointer-events: none
on previous target (#991) (6e4058b)
v14.2.5
Bug Fixes
v14.2.4
Bug Fixes
- use
window.FileList
instead of implicit global (c88865d)
v14.2.3
Bug Fixes
v14.2.2
Bug Fixes
v14.2.1
Performance Improvements
v14.2.0
Features
Bug Fixes
- guard against selection without range (#953) (ab78f3f)
- selectOptions: wait after each click (#951) (7ea7a77)
- wait after each method before leaving
asyncWrapper
(#952) (6f55fee)
v14.1.1
14.1.1 (2022-04-17)
Bug Fixes
- remove implicit global references (#932) (9913798)
- use
globalThis
instead ofglobal
(#928) (497c14d)
v14.1.0
Features
Bug Fixes
- delete chars from value at
maxlength
(#909) (f5049c4) - reset UI selection after programmatic value change (#915) (8bc3310)
- set initial value when setting UI value (#918) (7b0643b)
v14.0.4
14.0.4 (2022-04-01)
Bug Fixes
v14.0.3
14.0.3 (2022-03-31)
Bug Fixes
v14.0.2
14.0.2 (2022-03-31)
Bug Fixes
v14.0.1
14.0.1 (2022-03-31)
Bug Fixes
- maintain UI value on controlled number input (#889) (a7f9906)
- pointer: support nested select (#888) (e23e559)
v14.0.0
⚠ BREAKING CHANGES
- APIs always return a Promise.
-
pointer:
skipPointerEvents
has been removed. UsepointerEventsCheck: PointerEventsCheckLevel.Never
instead. -
upload:
init
parameter has been removed fromuserEvent.upload
. -
upload:
applyAccept
defaults totrue
. - The
userEvent.paste
API has new parameters. -
{ctrl}
,{del}
,{esc}
no longer describe a key. Use{Control}
,{Delete}
,{Escape}
instead. -
{alt}
,{ctrl}
,{meta}
,{shift}
no longer imply not releasing the key. Use{Alt>}
,{Control>}
,{Meta>}
,{Shift>}
instead. -
init
parameter has been removed from these APIs:userEvent.click
userEvent.dblClick
userEvent.tripleClick
userEvent.hover
userEvent.unhover
userEvent.selectOptions
userEvent.deselectOptions
-
userEvent.upload
no longer supportsclickInit
as part of itsinit
parameter. - Behavior for special key descriptor
{selectall}
has been removed. - Support for
keyCode
property on keyboard events has been removed. - An error is thrown when calling
userEvent.clear
on an element which is not editable. - An error is thrown when event handlers prevent
userEvent.clear
from focussing/selecting content. -
tab: The
focusTrap
option has been removed fromuserEvent.tab()
. -
type:
userEvent.type
does no longer move the cursor if used withskipClick=false
and withoutinitialSelectionStart
. - The implementation of pointer related APIs was replaced. This might break tests relying on unintended side-effects of the previous implementation.
- Support for node 10 was removed as it reached its end-of-life.
Features
- async APIs (#790) (86860cc)
- keep track of document state in UI (#747) (73e62d0)
- rewrite selection handling (#776) (968c2c4)
-
event: support
beforeinput
(#851) (8890bd6) - add
pointer
API (#750) (c12ee44) - add
setup
API (#746) (719ba03) - add
userEvent.copy
anduserEvent.cut
(#787) (8727a2d) - add
userEvent.tripleClick
API (#773) (0badabd) - apply modifier keys in pointer events (#751) (e33eb86)
-
keyboard: add
[Tab]
support (#767) (87470ff) - keyboard: apply modifier state (#815) (e9635f6)
- keyboard: move cursor and delete content in contenteditable (#822) (b83b259)
-
keyboard: select all per
{Control}+[KeyA]
(#774) (ea9b18a) - pointer: change selection per pointer (#763) (17fb8b1)
-
pointer: introduce
pointerEventsCheck
option (#823) (e2a5f43) - remove support for user provided
MouseEventInit
(#784) (56ebf7d) -
paste: replace
userEvent.paste
(#785) (f8fe217) -
clear: rewrite
userEvent.clear
API (#779) (1cda1b1) - upload: replace element properties (#794) (543eadb)
Bug Fixes
- check for inherited
:disabled
(#872) (1a00fdf) -
clipboard: prevent default behavior on
copy
/cut
(#866) (5423094) -
clipboard: prevent default behavior on
paste
(#862) (d3d71ac) - create MouseEvents per
createEvent
(#781) (da5b5b7) - export bundled ESM (#816) (1a5e2a7)
- export types and commonjs bundle (#821) (4f56856)
- keyboard: parse escaped bracket followed by descriptor (#814) (684451f)
- keyboard: parse keyboard input without nesting (#793) (fafa677)
-
keyboard: set
KeyboardEvent.charCode
onkeypress
(#771) (55e194a) -
keyboard: submit form with
<button/>
on[Enter]
(#808) (eca157a) - log correct docs link for invalid key descriptors (#881) (28d6604)
- maintain cursor position on controlled component (#765) (8f203cc)
-
pointer: blur
activeElement
on click outside of focusable (#834) (d64167c) - pointer: consider click context (#850) (ca4482a)
- pointer: fire pointer events on disabled elements (#818) (ef2f4e5)
-
pointer: honor click handler on
<label/>
(#810) (2c5d9f1) -
pointer: trigger
contextmenu
onmousedown
(#811) (e1c4cad) - prepare document in setup (#753) (65be675)
- remove deprecated keyboard features (#780) (45dc39a)
- remove legacy modifier implementations (#783) (caea162)
- replace pointer implementations (#754) (c04f79b)
- reset UI selection on setter (#770) (2733d10)
-
tab: order
tabIndex>0
beforetabIndex=0
(#809) (1bc5945) -
tab: remove
focusTrap
option (#772) (a0412c0) -
tab: skip elements with
visibility:hidden
(#799) (a747b0a) - upload: fix order of events (#847) (214fd03)
Miscellaneous Chores
v13.5.0
Features
v13.4.2
Bug Fixes
v13.4.1
Bug Fixes
v13.4.0
Features
v13.3.0
Features
v13.2.1
Bug Fixes
v13.2.0
Features
v13.1.9
Bug Fixes
v13.1.8
Bug Fixes
v13.1.7
Bug Fixes
v13.1.6
Bug Fixes
v13.1.5
Bug Fixes
v13.1.4
Bug Fixes
v13.1.3
Bug Fixes
v13.1.2
Bug Fixes
v13.1.1
Bug Fixes
v13.1.0
Features
v13.0.16
Bug Fixes
v13.0.15
Bug Fixes
v13.0.14
Bug Fixes
v13.0.13
Bug Fixes
v13.0.12
Bug Fixes
v13.0.11
Bug Fixes
v13.0.10
Bug Fixes
v13.0.9
Bug Fixes
v13.0.8
Bug Fixes
v13.0.7
Bug Fixes
v13.0.6
Bug Fixes
v13.0.5
Bug Fixes
v13.0.4
Bug Fixes
v13.0.3
Bug Fixes
v13.0.2
Bug Fixes
v13.0.1
Bug Fixes
v13.0.0
Features
BREAKING CHANGES
-
userEvent.type
features a rewritten implementation shared with the newuserEvent.keyboard
. This might break code depending on unintended/undocumented behavior of the previous implementation. -
userEvent.type
treats{
and[
as special characters. -
userEvent.type
returns no Promise if called withoutdelay
.
v12.8.3
Bug Fixes
v12.8.2
Bug Fixes
v12.8.1
Bug Fixes
v12.8.0
Features
v12.7.4
Bug Fixes
v12.7.3
Reverts
v12.7.2
Bug Fixes
v12.7.1
Bug Fixes
v12.7.0
Features
v12.6.3
Bug Fixes
v12.6.2
Bug Fixes
v12.6.1
Bug Fixes
v12.6.0
Features
v12.5.0
Features
v12.4.0
Features
v12.3.0
Features
v12.2.2
Bug Fixes
v12.2.1
Bug Fixes
v12.2.0
Features
v12.1.10
Bug Fixes
v12.1.9
Bug Fixes
v12.1.8
Bug Fixes
v12.1.7
Bug Fixes
v12.1.6
Bug Fixes
v12.1.5
Bug Fixes
v12.1.4
Bug Fixes
v12.1.3
Bug Fixes
- isClickable now specifies element.ownerDocument.defaultView as container for HTMLInputElement (#435) (26996a2), closes #434
v12.1.2
Bug Fixes
v12.1.1
Bug Fixes
v12.1.0
Features
v12.0.17
Bug Fixes
v12.0.16
Bug Fixes
v12.0.15
Bug Fixes
v12.0.14
Bug Fixes
v12.0.13
Bug Fixes
v12.0.12
Bug Fixes
v12.0.11
Bug Fixes
v12.0.10
Bug Fixes
v12.0.9
Bug Fixes
v12.0.8
Bug Fixes
- React onChange/onInput events not triggering on input type="file" file upload (#381) (d4db93c), closes #380
v12.0.7
Bug Fixes
v12.0.6
Bug Fixes
v12.0.5
Bug Fixes
v12.0.4
Bug Fixes
v12.0.3
Bug Fixes
v12.0.2
Bug Fixes
v12.0.1
Reverts
- Revert "docs: Move contributions to dom-testing-library (#345)" (#349) (730bd63), closes #345 #349
v12.0.0
Features
- make several API and implementation improvements (#348) (e72205a)
- type: make delay default to 0 (e13df95)
BREAKING CHANGES
- Remove
allAtOnce
option ontype
in favor ofdelay: 0
or the newpaste
event - Make
hover
andunhover
sync - Remove
toggleSelectedOptions
in favor ofdeselectOptions
- (Potentially...) improve correctness of all APIs (so we fire some additional events and improve general correctness). This may or may not break your usage depending on whether you relied on our in-correctness
😅 -
type
now actually defaults thedelay
to0
, so it's not necessarilyasync
anymore. It's only async if you pass adelay
.
v11.4.2
Bug Fixes
- type: allow users to type decimal values (ba1c8d3)
v11.4.1
Bug Fixes
v11.4.0
Features
v11.3.2
Bug Fixes
v11.3.1
Bug Fixes
- type: ensure the selectionStart/End are consistent with browsers (#322) (a44b14a), closes #321 #318 #316
v11.3.0
Features
v11.2.1
Bug Fixes
v11.2.0
Features
v11.1.0
Features
-
type: support special characters (like
{enter}
) (#308) (d38e493), closes #306 #301 #235 #181 #172 #31 - type: support special charaters (like {enter}) (b6c1bd6), closes #306 #301 #235 #181 #172 #31
v11.0.1
Bug Fixes
v11.0.0
Bug Fixes
BREAKING CHANGES
- type: The DOM Testing Library version 7.9.0 or greater is required
v10.4.1
Bug Fixes
v10.4.0
Features
v10.3.5
Bug Fixes
v10.3.4
Bug Fixes
v10.3.3
Bug Fixes
v10.3.2
Bug Fixes
v10.3.1
Bug Fixes
v10.3.0
Features
v10.2.4
Bug Fixes
v10.2.3
Bug Fixes
v10.2.2
Bug Fixes
v10.2.1
Bug Fixes
v10.2.0
Features
v10.1.2
Bug Fixes
v10.1.1
Bug Fixes
v10.1.0
Features
- add userEvent.clear (e73333e)
v10.0.2
Bug Fixes
-
🐛 update @testing-library/dom (742c0a7) -
🐛 update babel (3ee7339)
v10.0.1
Bug Fixes
- tab: Keep focus on the document if there are no focusable elements (420ae03)
v10.0.0
Continuous Integration
-
🎡 drop support for node 8 (9e957e0)
BREAKING CHANGES
- 🧨 Drop support for node 8
v9.0.0
Bug Fixes
-
🐛 type supports fields with previous text (1e8d140)
BREAKING CHANGES
- 🧨 Using .type() with an input field that had text already inside preserve the exisiting value and appends the typed text
v8.1.3
Bug Fixes
- export typings (02789f9)
v8.1.2
Bug Fixes
- 190: Add blur events in correct order (00f9d85)
v8.1.1
Bug Fixes
-
🐛 update @testing-library (f60a4e6) -
🐛 update babel (e2e2547)
v8.1.0
Features
v8.0.7
Bug Fixes
v8.0.6
Bug Fixes
v8.0.5
Bug Fixes
v8.0.4
Bug Fixes
v8.0.3
Bug Fixes
v8.0.2
Bug Fixes
v8.0.1
Bug Fixes
v8.0.0
Bug Fixes
- add focus event for checkbox/radio (225a264)
BREAKING CHANGES
- a focus event is now fired when clicking on checkbox and radio elements
Configuration
-
If you want to rebase/retry this MR, check this box
This MR has been generated by Renovate Bot.