Skip to content

Commit c7d3777

Browse files
authored
[fix] change process to globalThis.process (#2865)
Signed-off-by: Ihor Dykhta <[email protected]>
1 parent 5cb8a34 commit c7d3777

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/src/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ export function hasPortableWidth(breakPointValues: {palm: number; desk: number})
205205
}
206206

207207
export function isTest(): boolean {
208-
return typeof process !== 'undefined' && process?.env?.NODE_ENV === 'test';
208+
return globalThis.process?.env?.NODE_ENV === 'test';
209209
}
210210

211211
/**

0 commit comments

Comments
 (0)