New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

react-app-rewire-remove-test-ids

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-app-rewire-remove-test-ids

Add babel-plugin-remove-test-ids babel plugin to create-react-app using react-app-rewired

  • 1.0.1
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

react-app-rewire-remove-test-ids

Add babel-plugin-remove-test-ids babel plugin to create-react-app using react-app-rewired

Add the babel-plugin-remove-test-ids to create-react-app app via react-app-rewired

Installation

yarn add --dev react-app-rewire-remove-test-ids

OR

npm install --save-dev react-app-rewire-remove-test-ids

Usage

In the config-overrides.js you created for react-app-rewired add this code:

const { rewireRemoveTestIds } = require('react-app-rewire-remove-test-ids');

/* config-overrides.js */
module.exports = function override(config, env) {
  return rewireRemoveTestIds(config, env, { 'attributes': ['my-test-attribute', 'another-test-id'] });
}

If you are using compose utility provided by react-app-rewired to add multiple rewires, use this code:

const { compose } = require('react-app-rewired');
const { createRemoveTestIdsRewire } = require('react-app-rewire-remove-test-ids');

/* config-overrides.js */
module.exports = function override(config, env) {
  const rewires = compose(
    createRewireForSomeOtherPlugin(),
    // ... place more rewires
    createRemoveTestIdsRewire({ inline: true }),
  );
  return rewires(config, env);
};

Inspirations

react-app-rewire-styled-components by @mxstbr react-app-rewire-contrib by @osdevisnot

License

Licensed under MIT License, Copyright @ 2018 Rafał Wyszomirski. See LICENSE for more details.

Keywords

FAQs

Package last updated on 20 Jun 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc