-
-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Config test #21
Config test #21
Conversation
src/server/test/proxy_file.test.js
Outdated
|
||
test('log proxy settings with default config from file', () => { | ||
let settings = [] | ||
fs.copyFileSync('settings.json.default', settingsPath, ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This overwrites any changes to a potential "local" settings.json file. However, these test should never be run in an environment.
@@ -1,5 +1,7 @@ | |||
require('dotenv').config() // load variables from .env into the environment | |||
require('console-stamp')(console) | |||
const test_override_http = !process.env.OVERRIDE_USE_HTTP |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Had to have some way of overwriting the use_http
variable.
Makes it possible to log most configuration logging to an array, and use that to verify that typescript refactor (#20) is successful.