File tree 1 file changed +4
-6
lines changed
1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -178,9 +178,9 @@ function createEnvironment({ baseEnvironment } = {}) {
178
178
beforeFinish : ( span ) => {
179
179
const parent = this . testContainers . get ( this . getName ( event . test ) ) ;
180
180
if ( parent && ! Array . isArray ( parent ) ) {
181
- return parent . child ( span ) ;
181
+ return parent . startChild ( span ) ;
182
182
} else if ( Array . isArray ( parent ) ) {
183
- return parent . find ( isNotTransaction ) . child ( span ) ;
183
+ return parent . find ( isNotTransaction ) . startChild ( span ) ;
184
184
}
185
185
return span ;
186
186
} ,
@@ -241,11 +241,9 @@ function createEnvironment({ baseEnvironment } = {}) {
241
241
? parentStore
242
242
. get ( parentName )
243
243
. map ( ( s ) =>
244
- typeof s . child === "function"
245
- ? s . child ( spanProps )
246
- : s . startChild ( spanProps )
244
+ s . startChild ( spanProps
247
245
)
248
- : [ parentStore . get ( parentName ) . child ( spanProps ) ]
246
+ : [ parentStore . get ( parentName ) . startChild ( spanProps ) ]
249
247
: [ this . transaction . startChild ( spanProps ) ] ;
250
248
251
249
spans . push ( ...span ) ;
You can’t perform that action at this time.
0 commit comments