Skip to content

Commit 08fccd6

Browse files
savcni01eps1lon
andauthored
Update src/helpers.js
Co-authored-by: Sebastian Silbermann <[email protected]>
1 parent 99c2753 commit 08fccd6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/helpers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ function getWindowFromNode(node) {
107107
)
108108
} else if (
109109
typeof node.debug === 'function' &&
110-
node.logTestingPlaygroundURL instanceof Function
110+
typeof node.logTestingPlaygroundURL === 'function'
111111
) {
112112
throw new Error(
113113
`It looks like you used 'screen' object instead of one of selectors from screen.selectMethod and it passed a 'screen' instead of a DOM node. Did you do something like \`fireEvent.click(screen, ...\` when you meant to use a \`fireEvent.click(screen.getBy..., \`?`,

0 commit comments

Comments
 (0)