From 2b26608b73280c98dd83cb6411ee9e1e1143e630 Mon Sep 17 00:00:00 2001 From: Marcelo Shima Date: Thu, 9 May 2024 09:28:00 -0300 Subject: [PATCH] Update run-context.ts --- src/run-context.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/run-context.ts b/src/run-context.ts index 852de46..ad724b4 100644 --- a/src/run-context.ts +++ b/src/run-context.ts @@ -668,7 +668,7 @@ export class RunContextBase { const { question } = opts; this.askedQuestions.push({ name: question.name, answer }); - return this.adapterOptions.callback ? this.adapterOptions.callback(answer, opts) : answer; + return this.adapterOptions?.callback ? this.adapterOptions.callback(answer, opts) : answer; }; const testEnv = await this.helpers.createTestEnv(this.envOptions.createEnv, { cwd: this.settings.forwardCwd ? this.targetDirectory : undefined,