npm / @rstest/core
@rstest/core
What changed in @rstest/core 0.12, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-27.
10 new APIs and options2 behavior and defaults
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli init@rstest/core 0.1212 changes
New APIs and options 10
Adds a Locator interaction that drags an element to a target Locator, with optional source and target coordinates relative to each element's top-left padding-box corner.
Synchronously wraps a DOM Element from the current test document in a Locator, enabling native browser actions and Rstest assertions on elements from Testing Library or third-party tools.
Adds native keyboard input to the currently focused element, without focusing or selecting an element first.
Adds an assertion for an element's accessible description, accepting a string or regular expression.
Adds an assertion for an element's accessible name, accepting a string or regular expression.
Adds an assertion for an element's exact ARIA role; role hierarchy is not considered.
Adds an assertion for all selected option values of a multiple select, matching the expected array in DOM order.
Captures a PNG screenshot for each failed browser test by defaulting to the headless setting; set to false to disable capture.
Pass React root options such as
onRecoverableErrorthroughcreateRootOptionswhen rendering.Browser Mode can hydrate matching server-rendered markup without starting a Node server, enabling focused React hydration tests.
Behavior and default changes 2
Accepts DOM elements returned by Testing Library or native DOM queries, converting them through page.elementLocator() and using Locator assertion retry and timeout behavior.
Invalidation drops queued presses that have not started, but cannot cancel or roll back native input already in progress.