From c2519bdb7dc8c031cec49d5a8104f80fcfee1dec Mon Sep 17 00:00:00 2001 From: liyasthomas Date: Sat, 9 Nov 2019 12:17:50 +0530 Subject: [PATCH] :sparkles: Added pw.env.set() for storing environment variables --- functions/preRequest.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/functions/preRequest.js b/functions/preRequest.js index eed6fd828..aa608d01c 100644 --- a/functions/preRequest.js +++ b/functions/preRequest.js @@ -7,6 +7,9 @@ export default function getEnvironmentVariablesFromScript(script) { environment: { set: (key, value) => _variables[key] = value, }, + env: { + set: (key, value) => _variables[key] = value, + }, // globals that the script is allowed to have access to. };