tests: Add tests for wrapText util (#4495)

This commit is contained in:
Aakansha Doshi 2021-12-28 16:52:57 +05:30 committed by GitHub
parent 63ce5b82d7
commit 38236bc5e0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 149 additions and 1 deletions

View file

@ -458,3 +458,5 @@ export const arrayToMap = <T extends { id: string } | string>(
return acc;
}, new Map());
};
export const isTestEnv = () => process?.env?.NODE_ENV === "test";