Clean up process globals

Summary: Cleaned up some `process` references

Reviewed By: passy

Differential Revision: D33184882

fbshipit-source-id: 6fc56bcea4e145ba97aa8bf9e689e53e2bf239cc
This commit is contained in:
Michel Weststrate
2021-12-17 14:11:20 -08:00
committed by Facebook GitHub Bot
parent e46fcba0b2
commit 4630f37786
6 changed files with 36 additions and 25 deletions

View File

@@ -349,5 +349,6 @@ export function useTableRedraw() {
declare const process: any;
function useInUnitTest(): boolean {
// N.B. Not reusing flipper-common here, since data-source is published as separate package
return typeof process !== 'undefined' && process?.env?.NODE_ENV === 'test';
}