refactor: rename env var
This commit is contained in:
parent
b1e811473a
commit
6ff9d1a650
|
@ -40,7 +40,7 @@
|
||||||
"doc": "esdoc; node -p '\"\\nDocumentation coverage: \" + require(\"./doc/coverage.json\").coverage'",
|
"doc": "esdoc; node -p '\"\\nDocumentation coverage: \" + require(\"./doc/coverage.json\").coverage'",
|
||||||
"doc:watch": "watch 'npm run doc' . --wait=1 --ignoreDirectoryPattern=/doc/",
|
"doc:watch": "watch 'npm run doc' . --wait=1 --ignoreDirectoryPattern=/doc/",
|
||||||
"test": "cross-env NODE_ENV=test jest --useStderr",
|
"test": "cross-env NODE_ENV=test jest --useStderr",
|
||||||
"test:live": "cross-env NODE_ENV=test DOITLIVE=1 jest --useStderr",
|
"test:live": "cross-env NODE_ENV=test TEST_LIVE=1 jest --useStderr",
|
||||||
"test:watch": "cross-env NODE_ENV=test jest --watch --useStderr",
|
"test:watch": "cross-env NODE_ENV=test jest --watch --useStderr",
|
||||||
"test:cover": "cross-env NODE_ENV=test jest --coverage --useStderr",
|
"test:cover": "cross-env NODE_ENV=test jest --coverage --useStderr",
|
||||||
"codecov": "npm run test:cover && cat ./coverage/lcov.info | codecov",
|
"codecov": "npm run test:cover && cat ./coverage/lcov.info | codecov",
|
||||||
|
|
|
@ -18,9 +18,9 @@ type RpcResponse = {
|
||||||
|
|
||||||
export const mockRpc: Array<[string, RpcRequest, RpcResponse]> = [];
|
export const mockRpc: Array<[string, RpcRequest, RpcResponse]> = [];
|
||||||
|
|
||||||
// Define DOITLIVE in the environment to test against the real full node
|
// Define TEST_LIVE in the environment to test against the real full node
|
||||||
// identified by `url` instead of using the mock
|
// identified by `url` instead of using the mock
|
||||||
export const mockRpcEnabled = !process.env.DOITLIVE;
|
export const mockRpcEnabled = !process.env.TEST_LIVE;
|
||||||
|
|
||||||
let mockNotice = true;
|
let mockNotice = true;
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
import {Client as RpcWebSocketClient} from 'rpc-websockets';
|
import {Client as RpcWebSocketClient} from 'rpc-websockets';
|
||||||
|
|
||||||
// Define DOITLIVE in the environment to test against the real full node
|
// Define TEST_LIVE in the environment to test against the real full node
|
||||||
// identified by `url` instead of using the mock
|
// identified by `url` instead of using the mock
|
||||||
export const mockRpcEnabled = !process.env.DOITLIVE;
|
export const mockRpcEnabled = !process.env.TEST_LIVE;
|
||||||
|
|
||||||
let mockNotice = true;
|
let mockNotice = true;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue