babel-react-test-id-plugin
React plugin that adds data-test-id to react component
Last updated 2 years ago by cnid_engineering .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install babel-react-test-id-plugin 
SYNC missed versions from official npm registry.

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',
      ],
    },
  },
}

Current Tags

  • 0.0.1                                ...           latest (2 years ago)

1 Versions

  • 0.0.1                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dev Dependencies (25)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |