CodeVetter · Repo Unpack · Testing signals
testing-library/dom-testing-library
Tests and CI were inspected, not executed; test existence is not a passing result. Jest configuration separates jsdom and Node projects, with separately typechecked public API examples. Inspected suites exercise query semantics, visibility, asynchronous scheduling, removal, events, and diagnostic behavior. This is a bounded source inventory: browser fidelity, actual coverage percentages, inherited thresholds, and release success remain unverified.
- Jest imports coverage settings from kcd-scripts, excludes test directories from coverage, and declares dom/node projects; the DOM project uses jest-environment-jsdom and the Node project selects __node_tests__ files.
- Test support imports jest-dom matchers, serializes MutationRecord objects, suppresses deprecated warnings, restores mocked timers, and offers an innerHTML-based render/rerender helper with body cleanup.
- Role tests assert exclusions for hidden attributes, display:none, visibility:hidden, and ancestor aria-hidden; asynchronous query tests assert success and missing-result rejection across all eight query families plus delayed TestId appearance.
- waitFor tests inspect configurable error delegation, suppression of retries while a promise is pending, pending-promise timeout, and both timer-mode switches; fake-timer tests cover legacy/modern clocks, recursive timers, and requestAnimationFrame.
- Removal tests distinguish mutation from disappearance, reject initially absent elements, accept getter errors as disappearance, check undefined resolution, and cover direct elements and arrays tracked against top-most parents.
- Event tests assert bubbling, shadow-boundary composition, alias dispatch, value/selection mutation, files, and transfer data; the DataTransfer constructor branch is exercised with a locally supplied constructor.
- Node tests model an entire form-submit/delayed-result flow without a global DOM and assert screen's no-document error; type fixtures cover direct/screen queries and custom buildQueries/within bindings, but neither runtime nor type checks ran during this investigation.
- Inspected CI specifies Node 18/24 validation, format checking, and Codecov upload; it does not establish a real-browser test result. Coverage also has explicit blind spots: DOMElementFilter is ignored as a file and the event constructor fallback is ignored as a branch.