From 8ac9e00e702005dc1f8d0dad1f064cc0cf8ad497 Mon Sep 17 00:00:00 2001 From: MerlynOMsft <44985659+merlynomsft@users.noreply.github.com> Date: Wed, 23 Oct 2024 22:28:39 -0700 Subject: [PATCH] wip --- node/mock-run.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/node/mock-run.ts b/node/mock-run.ts index abe08f291..11f01dd21 100644 --- a/node/mock-run.ts +++ b/node/mock-run.ts @@ -82,7 +82,8 @@ export class TaskMockRunner { } // register mock task lib else { - var tlm = require('azure-pipelines-task-lib/mock-task'); + // this was previously require('azure-pipelines-task-lib/mock-task'), which doesn't resolve correctly when azure-pipelines-task-lib is referenced using file: path + var tlm = require('./mock-task'); if (this._answers) { tlm.setAnswers(this._answers); }