run diff envs

This commit is contained in:
benedettadavico
2023-01-06 17:49:23 +01:00
parent 365b955c90
commit 5f852e04a0
4 changed files with 5 additions and 4 deletions
+1 -1
View File
@@ -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.
+2 -1
View File
@@ -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",
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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 {