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'