Make the URL hit by jest smoke tests configurable (#1420)

* Make the URL hit by jest smoke tests configurable

* Fix typo

* Make names consistent
This commit is contained in:
Matt Weiden
2020-04-22 15:23:11 -07:00
committed by GitHub
parent 9b12b729c9
commit a2047b90ae
8 changed files with 22 additions and 35 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
export const jest_env = process.env.JEST_ENV;
export const appPort = process.env.CXG_SERVER_PORT;
export const appUrlBase = `http://localhost:${appPort}`;
export const appUrlBase = process.env.CXG_URL_BASE || `http://localhost:${appPort}`;
export const DEV = jest_env === "dev";
export const DEBUG = jest_env === "debug";
export const DATASET = "pbmc3k";