2020-10-19 16:33:26 +02:00
|
|
|
exports.wait = ms => new Promise(resolve => setTimeout(resolve, ms))
|
2020-10-26 18:49:33 +01:00
|
|
|
|
|
|
|
exports.isDev = () => {
|
|
|
|
return (
|
|
|
|
process.env.NODE_ENV !== "production" &&
|
|
|
|
process.env.NODE_ENV !== "jest" &&
|
|
|
|
process.env.NODE_ENV !== "cypress"
|
|
|
|
)
|
|
|
|
}
|