Skip to content

Commit a776ef6

Browse files
committed
Exclude internal bugs from coverage
These only exists as invariants.
1 parent 1b201e0 commit a776ef6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/pure.js

+1
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ function createConcurrentRoot(container, options) {
4444

4545
return {
4646
hydrate(element) {
47+
/* istanbul ignore if */
4748
if (!options.hydrate) {
4849
throw new Error(
4950
'Attempted to hydrate a non-hydrateable root. This is a bug in `@testing-library/react`.',

0 commit comments

Comments
 (0)