Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@instructure/ui-testable

Package Overview
Dependencies
Maintainers
31
Versions
1799
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@instructure/ui-testable

A UI component test utility made by Instructure Inc.

  • 6.26.1-rc.15
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
27K
decreased by-2.95%
Maintainers
31
Weekly downloads
 
Created
Source

category: packages

ui-testable

npm  build-status  MIT License  Code of Conduct

A decorator that adds a data- attribute to the React component root node to make it easier to test.

NOTE: by default, when NODE_ENV==='production' the data- attributes will not be appended (since they are specifically there for testing and appending them takes a non-trivial amount of time at runtime, slowing things down for your actual users). If you would like the data-cid attributes on elements even in your production builds (like if you are using them in your e2e builds or something), you need to set the environment variable:

ALWAYS_APPEND_UI_TESTABLE_LOCATORS=1

Installation

yarn add @instructure/ui-testable

FAQs

Package last updated on 18 Jun 2020

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