unstale

npm / @testing-library/user-event

@testing-library/user-event

What changed in @testing-library/user-event 14, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.

32 breaking8 new APIs and options8 behavior and defaults13 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli on npm

@testing-library/user-event 1461 changes

Breaking changes 32

  • Use the > modifier descriptors to indicate that Alt, Control, Meta, or Shift should not be released.

    14.0.0release notes

  • userEvent.upload no longer supports clickInit as part of its init parameter.

    14.0.0release notes

  • Copy, cut, and paste prevent their default behavior.

    14.0.0release notes

  • Use {Control} instead of the legacy {ctrl} descriptor; {Control>} describes holding the key without releasing it.

    14.0.0release notes

  • Keyboard events no longer support the keyCode property.

    14.0.0release notes

  • Keyboard interactions now apply modifier state.

    14.0.0release notes

  • Support for user-provided MouseEventInit has been removed.

    14.0.0release notes

  • Support for Node 10 was removed after it reached end of life.

    14.0.0release notes

  • Pointer-related APIs were replaced, which may affect tests relying on unintended side effects of the previous implementation.

    14.0.0release notes

  • Introduces the pointerEventsCheck option, including PointerEventsCheckLevel.Never as the replacement for skipPointerEvents.

    14.0.0release notes

  • The special key descriptor behavior has been removed.

    14.0.0release notes

  • Removes skipPointerEvents; use pointerEventsCheck: PointerEventsCheckLevel.Never instead.

    14.0.0release notes

  • Tab order now places tabIndex>0 before tabIndex=0.

    14.0.0release notes

  • APIs always return a Promise, so callers need to await or otherwise handle asynchronous interactions.

    14.0.0release notes

  • Calling clear on a non-editable element, or when handlers prevent focus or content selection, now throws an error.

    14.0.0release notes

  • The init parameter has been removed.

    14.0.0release notes

  • Copy and cut now prevent their default browser behavior.

    14.0.0release notes

  • The init parameter has been removed.

    14.0.0release notes

  • The init parameter has been removed.

    14.0.0release notes

  • The init parameter has been removed.

    14.0.0release notes

  • The paste API has new parameters and has been replaced.

    14.0.0release notes

  • The paste API was replaced.

    14.0.0release notes

  • Paste now prevents its default browser behavior.

    14.0.0release notes

  • The init parameter has been removed.

    14.0.0release notes

  • The focusTrap option has been removed.

    14.0.0release notes

  • The init parameter has been removed.

    14.0.0release notes

  • With skipClick=false and no initialSelectionStart, type no longer moves the cursor.

    14.0.0release notes

  • The init parameter has been removed.

    14.0.0release notes

  • Upload behavior now replaces element properties.

    14.0.0release notes

  • applyAccept now defaults to true.

    14.0.0release notes

  • The init parameter has been removed from userEvent.upload.

    14.0.0release notes

  • Tab navigation skips elements with visibility:hidden.

    14.0.0release notes

New APIs and options 8

Behavior and default changes 8

Fixes and other changes 13

  • Pressing Enter in a single number input now submits the form.

    14.6.13release notes

  • Fixed handling of maxlength on tel inputs.

    14.6.12release notes

  • Fixes tracking the value of inputs and textareas in shadow DOM.

    14.6.11release notes

  • Implicit form submission now matches the browser specification.

    14.6.10release notes

  • Valid numbers in number inputs keep their string value.

    14.6.9release notes

  • Programmatic null input values are treated as empty strings.

    14.6.8release notes

  • DataTransfer format aliases are normalized.

    14.6.7release notes

  • Default pointer event pointerType is now an empty string instead of the string "undefined".

    14.6.6release notes

  • Fixes tab retargeting when focus moves during keydown.

    14.6.5release notes

  • Fixes the repeat property on keyboard events.

    14.6.4release notes

  • Keyboard interactions can move the cursor and delete content in contenteditable.

    14.0.0release notes

  • Disabled-state checks now account for inherited :disabled.

    14.0.0release notes

  • Corrects the order of upload events.

    14.0.0release notes