Add util to detect test env

This commit is contained in:
TC
2020-05-01 18:34:01 +02:00
parent bce5b7d8eb
commit 954a58bcf5

3
utils/testing.js Normal file
View File

@ -0,0 +1,3 @@
const isTesting = () => process.env.NODE_ENV === "test";
module.exports = { isTesting };