Skip to content

Commit e189f2d

Browse files
committed
Fix displayName usage in templates
1 parent 6751a86 commit e189f2d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

utils/buildJsonResults.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,9 @@ module.exports = function (report, appDirectory, options) {
9898
const filepath = path.relative(appDirectory, suite.testFilePath);
9999
const filename = path.basename(filepath);
100100
const suiteTitle = suite.testResults[0].ancestorTitles[0];
101-
const displayName = suite.displayName;
101+
const displayName = typeof suite.displayName === 'object'
102+
? suite.displayName.name
103+
: suite.displayName;
102104

103105
// Build replacement map
104106
let suiteNameVariables = {};

0 commit comments

Comments
 (0)