@@ -69,7 +69,7 @@ export function createOrUpdateFileNode(
6969 tasks : [ ] ,
7070 typecheck : ! ! file . meta && 'typecheck' in file . meta ,
7171 indent : 0 ,
72- duration : file . result ?. duration ,
72+ duration : file . result ?. duration != null ? Math . round ( file . result ?. duration ) : undefined ,
7373 filepath : file . filepath ,
7474 projectName : file . projectName || '' ,
7575 projectNameColor : getProjectNameColor ( file . projectName ) ,
@@ -132,6 +132,9 @@ export function createOrUpdateNode(
132132) {
133133 const node = explorerTree . nodes . get ( parentId ) as ParentTreeNode | undefined
134134 let taskNode : UITaskTreeNode | undefined
135+ const duration = task . result ?. duration != null
136+ ? Math . round ( task . result ?. duration )
137+ : undefined
135138 if ( node ) {
136139 taskNode = explorerTree . nodes . get ( task . id )
137140 if ( taskNode ) {
@@ -141,7 +144,7 @@ export function createOrUpdateNode(
141144 }
142145
143146 taskNode . mode = task . mode
144- taskNode . duration = task . result ?. duration
147+ taskNode . duration = duration
145148 taskNode . state = task . result ?. state
146149 }
147150 else {
@@ -156,7 +159,7 @@ export function createOrUpdateNode(
156159 expandable : false ,
157160 expanded : false ,
158161 indent : node . indent + 1 ,
159- duration : task . result ?. duration ,
162+ duration,
160163 state : task . result ?. state ,
161164 } as TestTreeNode | CustomTestTreeNode
162165 }
@@ -174,7 +177,7 @@ export function createOrUpdateNode(
174177 children : new Set ( ) ,
175178 tasks : [ ] ,
176179 indent : node . indent + 1 ,
177- duration : task . result ?. duration ,
180+ duration,
178181 state : task . result ?. state ,
179182 } as SuiteTreeNode
180183 }
0 commit comments