We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8b9dd96 commit 1945a98Copy full SHA for 1945a98
1 file changed
lib/internal/test_runner/reporter/junit.js
@@ -103,8 +103,7 @@ module.exports = async function* junitReporter(source) {
103
if (currentSuite?.nesting === event.data.nesting) {
104
currentSuite = currentSuite.parent;
105
}
106
- const duration = event.data.details?.duration_ms ?? 0;
107
- currentTest.attrs.time = NumberPrototypeToFixed(duration / 1000, 6);
+ currentTest.attrs.time = NumberPrototypeToFixed(event.data.details.duration_ms / 1000, 6);
108
const nonCommentChildren = ArrayPrototypeFilter(currentTest.children, (c) => c.comment == null);
109
if (nonCommentChildren.length > 0) {
110
currentTest.tag = 'testsuite';
0 commit comments