2020-10-28 21:35:06 +01:00
|
|
|
const env = require("../environment")
|
|
|
|
|
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 (
|
2020-10-29 11:45:02 +01:00
|
|
|
!env.CLOUD &&
|
2020-10-28 21:35:06 +01:00
|
|
|
env.NODE_ENV !== "production" &&
|
|
|
|
env.NODE_ENV !== "jest" &&
|
|
|
|
env.NODE_ENV !== "cypress"
|
2020-10-26 18:49:33 +01:00
|
|
|
)
|
|
|
|
}
|
2020-11-02 16:46:08 +01:00
|
|
|
|
|
|
|
exports.getAppId = ctx => {
|
|
|
|
|
|
|
|
}
|