Files
threshold-ui/addons/core/tests/dummy/config/environment.js
T

72 lines
1.6 KiB
JavaScript
Raw Normal View History

2020-11-18 12:12:30 -05:00
"use strict";
2020-11-18 11:58:16 -05:00
2020-11-18 12:12:30 -05:00
module.exports = function (environment) {
2020-11-18 11:58:16 -05:00
let ENV = {
2020-11-18 12:12:30 -05:00
modulePrefix: "dummy",
2020-11-18 11:58:16 -05:00
environment,
2020-11-18 12:12:30 -05:00
rootURL: "/",
locationType: "auto",
2020-11-18 11:58:16 -05:00
EmberENV: {
FEATURES: {
// Here you can enable experimental features on an ember canary build
// e.g. EMBER_NATIVE_DECORATOR_SUPPORT: true
},
EXTEND_PROTOTYPES: {
// Prevent Ember Data from overriding Date.parse.
2020-11-18 12:12:30 -05:00
Date: false,
},
2020-11-18 11:58:16 -05:00
},
APP: {
// Here you can pass flags/options to your application instance
// when it is created
2020-11-18 12:12:30 -05:00
},
appName: 'App Name',
companyName: 'Company Name',
documentation: {
baseURL: 'https://boundaryproject.io/help/admin-ui',
topics: {
account: '/accounts',
}
},
api: {
host: '',
namespace: 'v1',
},
'ember-cli-mirage': {
directory: '../api/mirage'
},
enableConfirmService: false
2020-11-18 11:58:16 -05:00
};
2020-11-18 12:12:30 -05:00
if (environment === "development") {
2020-11-18 11:58:16 -05:00
// ENV.APP.LOG_RESOLVER = true;
// ENV.APP.LOG_ACTIVE_GENERATION = true;
// ENV.APP.LOG_TRANSITIONS = true;
// ENV.APP.LOG_TRANSITIONS_INTERNAL = true;
// ENV.APP.LOG_VIEW_LOOKUPS = true;
}
2020-11-18 12:12:30 -05:00
if (environment === "test") {
2020-11-18 11:58:16 -05:00
// Testem prefers this...
2020-11-18 12:12:30 -05:00
ENV.locationType = "none";
2020-11-18 11:58:16 -05:00
// keep test console output quieter
ENV.APP.LOG_ACTIVE_GENERATION = false;
ENV.APP.LOG_VIEW_LOOKUPS = false;
2020-11-18 12:12:30 -05:00
ENV.APP.rootElement = "#ember-testing";
2020-11-18 11:58:16 -05:00
ENV.APP.autoboot = false;
}
2020-11-18 12:12:30 -05:00
if (environment === "production") {
2020-11-18 11:58:16 -05:00
// here you can enable a production-specific feature
}
return ENV;
};