babel-react-test-id-plugin
v0.0.1
Published
React plugin that adds data-test-id to react component
Readme
Installation
npm install --save-dev @condenast/babel-react-test-id-pluginUsage
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',
],
},
},
}