Skip to content

Commit

Permalink
[fix] change process to globalThis.process (#2865)
Browse files Browse the repository at this point in the history
Signed-off-by: Ihor Dykhta <[email protected]>
  • Loading branch information
igorDykhta authored Dec 26, 2024
1 parent 5cb8a34 commit c7d3777
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ export function hasPortableWidth(breakPointValues: {palm: number; desk: number})
}

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

/**
Expand Down

0 comments on commit c7d3777

Please sign in to comment.