UNPKG

askui

Version:

Reliable, automated end-to-end-testing that depends on what is shown on your screen instead of the technology you are running on

17 lines (16 loc) 575 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.envCredentials = envCredentials; const lib_1 = require("../lib"); function envCredentials() { const envToken = process.env['ASKUI_TOKEN']; const envWorkspaceId = process.env['ASKUI_WORKSPACE_ID']; if (envToken && envWorkspaceId) { lib_1.logger.debug('AskUI credentials are being read from ENV variables: ASKUI_TOKEN and ASKUI_WORKSPACE_ID'); return { workspaceId: envWorkspaceId, token: envToken, }; } return undefined; }