diff --git a/packages/bruno-cli/src/runner/run-single-request.js b/packages/bruno-cli/src/runner/run-single-request.js index 082c3d41..ee67f60b 100644 --- a/packages/bruno-cli/src/runner/run-single-request.js +++ b/packages/bruno-cli/src/runner/run-single-request.js @@ -30,7 +30,7 @@ const runSingleRequest = async function ( try { let request; - request = prepareRequest(bruJson.request); + request = prepareRequest(bruJson.request, collectionRoot); const scriptingConfig = get(brunoConfig, 'scripts', {}); diff --git a/packages/bruno-js/src/runtime/script-runtime.js b/packages/bruno-js/src/runtime/script-runtime.js index 910c7df4..391d047d 100644 --- a/packages/bruno-js/src/runtime/script-runtime.js +++ b/packages/bruno-js/src/runtime/script-runtime.js @@ -71,6 +71,7 @@ class ScriptRuntime { }; context.console = { log: customLogger('log'), + debug: customLogger('debug'), info: customLogger('info'), warn: customLogger('warn'), error: customLogger('error')