File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
packages/datadog-instrumentations/src Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -772,7 +772,10 @@ addHook({
772
772
if ( ! isKnownTestsEnabled && ! isTestManagementTestsEnabled && ! isImpactedTestsEnabled ) {
773
773
return oldCreateRootSuite . apply ( this , arguments )
774
774
}
775
- const rootSuite = await oldCreateRootSuite . apply ( this , arguments )
775
+
776
+ const createRootSuiteReturnValue = await oldCreateRootSuite . apply ( this , arguments )
777
+ // From v1.56.0 on, createRootSuite returns `{ rootSuite, topLevelProjects }`
778
+ const rootSuite = createRootSuiteReturnValue . rootSuite || createRootSuiteReturnValue
776
779
777
780
const allTests = rootSuite . allTests ( )
778
781
@@ -861,7 +864,7 @@ addHook({
861
864
}
862
865
}
863
866
864
- return rootSuite
867
+ return createRootSuiteReturnValue
865
868
}
866
869
867
870
// We need to proxy the createRootSuite function because the function is not configurable
You can’t perform that action at this time.
0 commit comments