Skip to content

Commit

Permalink
[fix] fix for process is undefined (#2376)
Browse files Browse the repository at this point in the history
Signed-off-by: Ihor Dykhta <dikhta.igor@gmail.com>
  • Loading branch information
igorDykhta committed Oct 17, 2023
1 parent 9eb6b32 commit a958586
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/src/utils.ts
Expand Up @@ -214,7 +214,7 @@ export function hasPortableWidth(breakPointValues: {palm: number; desk: number})
}

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

/**
Expand Down

0 comments on commit a958586

Please sign in to comment.