[](https://badge.fury.io/js/babel-plugin-react-remove-attributes) [](
npm install babel-plugin-react-remove-attributes

This plugin will remove specified attributes from React components. The default attribute to be removed is data-test-id.
This could be useful for removing tags used for testing eg:
```
will become:
``
By default, data-test-id is removed.
It's possible to pass attributes that we want to remove in several ways:
| Input type | example |
|---|---|
| string | data-test-something |['data-test-one', 'data-test-two']
| array of strings | |/data-test-*/
| regular expression | |[/data-test-/, /data-details-/]` |
| array of regular expressions |