We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 646d8c2 commit 34f19d5Copy full SHA for 34f19d5
packages/datadog-instrumentations/src/playwright.js
@@ -761,9 +761,17 @@ addHook({
761
return rootSuite
762
}
763
764
- loadUtilsPackage.createRootSuite = newCreateRootSuite
+ // We need to proxy the createRootSuite function because the function is not configurable
765
+ const proxy = new Proxy(loadUtilsPackage, {
766
+ get (target, prop) {
767
+ if (prop === 'createRootSuite') {
768
+ return newCreateRootSuite
769
+ }
770
+ return target[prop]
771
772
+ })
773
- return loadUtilsPackage
774
+ return proxy
775
})
776
777
// main process hook
0 commit comments