dd-trace integration with Cypress: plugins file override? #1709
Unanswered
jdborneman-terminus
asked this question in
Q&A
Replies: 1 comment 3 replies
-
cc @juan-fernandez since I've seen you tagged/answering in another discussion. Thanks! |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Reading the instructions here it looks like it says to override the location of the plugins file to be one that comes with dd-trace. What if we've already got stuff in our
/cypress/plugins/index.js
file? Is there a way to both use dd-trace AND have our own stuff in plugins?To resolve this, I tried adding
require('dd-trace/cypress/plugin')
to my/cypress/plugins/index.js
file, but it fails pretty spectacularly:Ideally we could just require the plugin from dd-trace like this and have it work so we could have OTHER plugins defined as well. I'm relatively new to Cypress and brand new to DataDog, but the way I read the instructions it seems you have to set your plugins file to what's in dd-trace, which would preclude having other plugins defined I think?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions