We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8a399fb commit be5d9c1Copy full SHA for be5d9c1
src/__tests__/pretty-dom.js
@@ -1,15 +1,16 @@
1
+/* global globalThis */
2
import {prettyDOM as prettyDOMImpl} from '../pretty-dom'
3
import {render, renderIntoDocument} from './helpers/test-utils'
4
5
function prettyDOM(...args) {
6
let originalProcess
7
// this shouldn't be defined in this environment in the first place
- if (typeof process !== 'undefined') {
8
+ if (typeof process === 'undefined') {
9
+ throw new Error('process is no longer defined. Remove this setup code.')
10
+ } else {
11
originalProcess = process
12
// TODO: Delete to test browser environments
13
// delete globalThis.process
- } else {
- throw new Error('process is no longer defined. Remove this setup code.')
14
}
15
16
try {
0 commit comments