Alternatives to shadow-dom-testing-library
200 apps like shadow-dom-testing-library, closest match first.
Top picks
- Q

query-selector-shadow-dom
Launchquery-selector-shadow-dom is a small JavaScript library from the WebdriverIO project that lets you use querySelector-style syntax to find elements inside nested shadow DOM roots, without having to know the full path through each shadow root
- W

@webcomponents/shadydom
LaunchShadyDOM is a shim for Shadow DOM V1 that is part of the Web Components polyfills. The README says it is less correct than the full ShadowDOM polyfill, but less intrusive and faster. Its usage is transparent when attachShadow is unavailable
- L

@lwc/synthetic-shadow
LaunchShadow DOM polyfill by LWC.
- V

vue-shadow-dom
LaunchShadow is a library that adds Shadow DOM support to Vue, so a component can render its contents inside a shadow root. The shadow element takes a tag prop, which defaults to div, and an abstract prop that moves the shadow root and stops othe
- W

@webcomponents/shadycss
LaunchShadowDOM style encapsulation shim.
- T

Testing Library
LaunchTesting Library is a family of open-source JavaScript libraries for testing user interfaces by querying the page the way users find things on it. Tests look up elements by role, label and text rather than by implementation details, which th
Open source
More like shadow-dom-testing-library
Web Components: Working With Shadow DOM
Magazine on CSS, JavaScript, front-end, accessibility, UX and design

vue-testing-best-practices
Vue.js testing. Covers Vitest, Vue Test Utils, component testing, mocking

Testing Playground
Simple and complete DOM testing playground that encourage good testing practices

@viselect/vanilla
Simple, lightweight and modern library library for making visual DOM Selections
@wc-toolkit/storybook-helpers
Helpers designed to make integrating Web Components with Storybook easier

@storybook/addon-docs
Storybook Docs: Document UI components automatically with stories and MDX
About shadow-dom-testing-library

shadow-dom-testing-library
An extension of DOM-testing-library to provide hooks into the shadow dom
shadow-dom-testing-library extends DOM Testing Library so you can query elements inside shadow DOM. DOM Testing Library does not check shadow roots, which makes it hard to find something like a button nested inside a shadow root. This library adds a Shadow-prefixed version of each query type. Its screen object comes with the query functions bound to the document, and every query accepts a shallow option that searches only one shadow root deep. It also exports deepQuerySelector and deepQuerySelectorAll for finer control, and a within function that binds the queries to a particular container element. The README warns that the shadow and deep queries recurse through every shadow root, which can find unintended elements in tests, and that recursing can be expensive in a DOM with many elements. For setup, Jest users need jsdom 16.2 or later and Jest 26.2 or later. The README describes the library as very new and asks users to report any issues they find.
- Price
- Free
- Made by
- paramagicdev
- Category
- UI Libraries
- Website
- github.com/konnorrogers/shadow-dom-testing-library

























