How to remove cypress "data-cy" from the production source code? I have tried to use this but it's hampering dynamic attributes.
I would be very grateful if you all can help me out.
Thank you
How to remove cypress "data-cy" from the production source code? I have tried to use this but it's hampering dynamic attributes.
I would be very grateful if you all can help me out.
Thank you
If your project uses Babel, you should be able to use babel-plugin-react-remove-properties to remove data-cy and any other attributes/properties you want to hide away.