From c7a07bf18f7dd881dadec4eae964bde07d7b67fe Mon Sep 17 00:00:00 2001 From: David Goss Date: Wed, 8 Jan 2025 23:16:03 +0000 Subject: [PATCH] wrap getInvocationParameters in scope --- src/runtime/step_runner.ts | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/runtime/step_runner.ts b/src/runtime/step_runner.ts index 4de2f6c9b..428e03905 100644 --- a/src/runtime/step_runner.ts +++ b/src/runtime/step_runner.ts @@ -32,10 +32,12 @@ export async function run({ let error: any, result: any, invocationData: IGetInvocationDataResponse try { - invocationData = await stepDefinition.getInvocationParameters({ - hookParameter, - step, - world, + await runInTestCaseScope({ world }, async () => { + invocationData = await stepDefinition.getInvocationParameters({ + hookParameter, + step, + world, + }) }) } catch (err) { error = err