Skip to content

Commit

Permalink
wrap getInvocationParameters in scope
Browse files Browse the repository at this point in the history
  • Loading branch information
davidjgoss committed Jan 8, 2025
1 parent a3ffe8c commit c7a07bf
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/runtime/step_runner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c7a07bf

Please sign in to comment.