babel-react-test-id-plugin
v0.0.1
Published
React plugin that adds data-test-id to react component
Downloads
2
Readme
Installation
npm install --save-dev @condenast/babel-react-test-id-plugin
Usage
babel-plugin
Add babel-react-test-id-plugin
to the plugin list in .babelrc
for your client code. For example:
{
presets: ['react'],
env: {
test: {
plugins: [
' @condenast/babel-react-test-id-plugin/babel',
],
},
},
}