We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ba44c14 commit 70d90c1Copy full SHA for 70d90c1
src/queries.js
@@ -4,7 +4,7 @@ import {prettyDOM} from './pretty-dom'
4
5
function debugDOM(htmlElement) {
6
const limit = process.env.DEBUG_PRINT_LIMIT || 7000
7
- const inNode = typeof module !== 'undefined' && module.exports
+ const inNode = typeof process !== 'undefined' && process.versions !== undefined && process.versions.node !== undefined
8
const inCypress = typeof window !== 'undefined' && window.Cypress
9
/* istanbul ignore else */
10
if (inCypress) {
0 commit comments