"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.isTest = exports.isDevelopment = void 0;
exports.isTestEnvironment = isTestEnvironment;
exports.isDevelopmentEnvironment = isDevelopmentEnvironment;
const env_1 = require("../env");
exports.isDevelopment = (!env_1.Env.NODE_ENV || env_1.Env.NODE_ENV === 'development') && (!env_1.Env.APP_ENV || env_1.Env.APP_ENV === 'development');
exports.isTest = env_1.Env.APP_ENV === 'test' || process.argv.includes('--test') || process.execArgv.includes('--test');
function isTestEnvironment() {
    return exports.isTest || env_1.Env.APP_ENV === 'test' || process.argv.includes('--test') || process.execArgv.includes('--test');
}
function isDevelopmentEnvironment() {
    if (env_1.Env.NODE_ENV === undefined && env_1.Env.APP_ENV === undefined)
        return exports.isDevelopment;
    return (!env_1.Env.NODE_ENV || env_1.Env.NODE_ENV === 'development') && (!env_1.Env.APP_ENV || env_1.Env.APP_ENV === 'development');
}
//# sourceMappingURL=const.js.map