Skip to content

Commit

Permalink
Update lib/reporters/xunit.js
Browse files Browse the repository at this point in the history
Co-authored-by: Ville Lahdenvuo <[email protected]>
  • Loading branch information
bmish and villelahdenvuo authored Oct 30, 2023
1 parent a91e86c commit 1245e7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/reporters/xunit.js
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ XUnit.prototype.test = function (test) {
var attrs = {
classname: test.parent.fullTitle(),
name: test.title,
file: test.file,
file: test.file || test?.invocationDetails?.absoluteFile,
time: test.duration / 1000 || 0
};

Expand Down

0 comments on commit 1245e7e

Please sign in to comment.