Skip to content

Commit c7a07bf

Browse files
committed
wrap getInvocationParameters in scope
1 parent a3ffe8c commit c7a07bf

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/runtime/step_runner.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,12 @@ export async function run({
3232
let error: any, result: any, invocationData: IGetInvocationDataResponse
3333

3434
try {
35-
invocationData = await stepDefinition.getInvocationParameters({
36-
hookParameter,
37-
step,
38-
world,
35+
await runInTestCaseScope({ world }, async () => {
36+
invocationData = await stepDefinition.getInvocationParameters({
37+
hookParameter,
38+
step,
39+
world,
40+
})
3941
})
4042
} catch (err) {
4143
error = err

0 commit comments

Comments
 (0)