Skip to content

Commit

Permalink
fix: get invocation details from parent
Browse files Browse the repository at this point in the history
  • Loading branch information
jjestacio committed Jul 19, 2022
1 parent 913573c commit 34c9f96
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/commands/functions/getTestMetadata.js
Expand Up @@ -9,7 +9,8 @@ function getTestMetadata(context) {
throw new Error('No "test" in context');
}

const file = test.invocationDetails?.absoluteFile;
const invocationDetails = test.invocationDetails || test.parent?.invocationDetails;
const file = invocationDetails?.absoluteFile;

let titles = [test.title];
let parent = test.parent;
Expand Down

0 comments on commit 34c9f96

Please sign in to comment.