JSPM

babel-plugin-react-data-testid

0.1.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2950
  • Score
    100M100P100Q121394F
  • License MIT

babel plugin for react data-testid attributes

Package Exports

  • babel-plugin-react-data-testid

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (babel-plugin-react-data-testid) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

babel-plugin-react-data-testid

Build Status tested with jest styled with prettier All Contributors

babel plugin for react data-testid attributes

Install

$ npm install --save-dev babel-plugin-react-data-testid
$ yarn add --dev babel-plugin-react-data-testid

Usage

.babelrc

{
  "plugins": ["react-data-testid"]
}
function Div() {
  return <div />
}

const Hello = () => <div>hello</div>

// ↓ ↓ ↓

function Div() {
+  return <div data-testid="Div" />
}

+ const Hello = () => <div data-testid="Hello">hello</div>

Contributors

Thanks goes to these wonderful people (emoji key):

akameco
akameco

💻 📖 ⚠️ 🚇

This project follows the all-contributors specification. Contributions of any kind welcome!

License

MIT © akameco