File tree Expand file tree Collapse file tree 1 file changed +12
-8
lines changed Expand file tree Collapse file tree 1 file changed +12
-8
lines changed Original file line number Diff line number Diff line change @@ -65,21 +65,25 @@ By default attributes with name `data-test-id` or `data-testid` (as used in [rea
65
65
66
66
``` javascript
67
67
plugins: [
68
- " babel-plugin-jsx-remove-data-test-id" ,
69
- {
70
- attributes: " selenium-id"
71
- }
68
+ [
69
+ " babel-plugin-jsx-remove-data-test-id" ,
70
+ {
71
+ attributes: " selenium-id"
72
+ }
73
+ ]
72
74
];
73
75
```
74
76
75
77
Or if you need to strip off multiple attributes, you can define an attributes array as follows:
76
78
77
79
``` javascript
78
80
plugins: [
79
- " babel-plugin-jsx-remove-data-test-id" ,
80
- {
81
- attributes: [" data-test-id" , " selenium-id" , " another-attr-to-be-stripped" ]
82
- }
81
+ [
82
+ " babel-plugin-jsx-remove-data-test-id" ,
83
+ {
84
+ attributes: [" data-test-id" , " selenium-id" , " another-attr-to-be-stripped" ]
85
+ }
86
+ ]
83
87
];
84
88
```
85
89
You can’t perform that action at this time.
0 commit comments