diff --git a/nym-api/tests/README.md b/nym-api/tests/README.md index 914e55bdcd..baf72a79aa 100644 --- a/nym-api/tests/README.md +++ b/nym-api/tests/README.md @@ -1,5 +1,5 @@ -## validator-api-test suite +## nym-api-test suite A Typescript test framework utilising Jest and Node to perform tests against the NYM validator-apis. diff --git a/nym-api/tests/package.json b/nym-api/tests/package.json index deb5ee46b1..646fe7c7b2 100644 --- a/nym-api/tests/package.json +++ b/nym-api/tests/package.json @@ -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", diff --git a/nym-api/tests/src/config/config.yaml b/nym-api/tests/src/config/config.yaml index ced430173f..8a0007600e 100644 --- a/nym-api/tests/src/config/config.yaml +++ b/nym-api/tests/src/config/config.yaml @@ -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 diff --git a/nym-api/tests/src/config/configHandler.ts b/nym-api/tests/src/config/configHandler.ts index 05cb8d85c6..cd214061c5 100644 --- a/nym-api/tests/src/config/configHandler.ts +++ b/nym-api/tests/src/config/configHandler.ts @@ -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 {