run diff envs
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<!-- ABOUT THE PROJECT -->
|
||||
## validator-api-test suite
|
||||
## nym-api-test suite
|
||||
|
||||
A Typescript test framework utilising Jest and Node to perform tests against the NYM validator-apis.
|
||||
|
||||
|
||||
@@ -7,7 +7,8 @@
|
||||
"test": "test"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "jest --forceExit --detectOpenHandles --passWithNoTests",
|
||||
"test:qa": "TEST_ENV=qa jest --forceExit --detectOpenHandles --passWithNoTests",
|
||||
"test:prod": "TEST_ENV=prod jest --forceExit --detectOpenHandles --passWithNoTests",
|
||||
"build": "tsc",
|
||||
"lint": "eslint --ext .js,.ts,.tsx .",
|
||||
"lint:fix": "eslint --fix",
|
||||
|
||||
@@ -9,7 +9,7 @@ qa:
|
||||
gateway_identity: 336yuXAeGEgedRfqTJZsG2YV7P13QH1bHv1SjCZYarc9
|
||||
log_level: error
|
||||
prod:
|
||||
api_base_url: https://qa-validator-api.nymtech.net/api/v1
|
||||
api_base_url: https://validator.nymtech.net/api/v1
|
||||
mixnode_identity: DLdMKLPywEy1vnu3yPrtXvzY7fw1puiiHpA9n9UQatiQ
|
||||
gateway_identity: CgQrYP8etksSBf4nALNqp93SHPpgFwEUyTsjBNNLj5WM
|
||||
log_level: error
|
||||
|
||||
@@ -23,7 +23,7 @@ class ConfigHandler {
|
||||
|
||||
private constructor() {
|
||||
this.setCommonConfig();
|
||||
this.setEnvironmentConfig(process.env.TEST_ENV || "qa");
|
||||
this.setEnvironmentConfig(process.env.TEST_ENV || "qa" || "prod" );
|
||||
}
|
||||
|
||||
public static getInstance(): ConfigHandler {
|
||||
|
||||
Reference in New Issue
Block a user