2020-10-29 09:35:06 +13:00
|
|
|
const env = require("../environment")
|
|
|
|
|
2020-10-20 03:33:26 +13:00
|
|
|
exports.wait = ms => new Promise(resolve => setTimeout(resolve, ms))
|
2020-10-27 06:49:33 +13:00
|
|
|
|
|
|
|
exports.isDev = () => {
|
|
|
|
return (
|
2020-10-29 09:35:06 +13:00
|
|
|
env.NODE_ENV !== "production" &&
|
|
|
|
env.NODE_ENV !== "jest" &&
|
|
|
|
env.NODE_ENV !== "cypress"
|
2020-10-27 06:49:33 +13:00
|
|
|
)
|
|
|
|
}
|