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

@instructure/ui-testable

Package Overview
Dependencies
Maintainers
0
Versions
1766
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.

  • 10.6.1-snapshot-5
  • Source
  • npm
  • Socket score

Version published
Maintainers
0
Created
Source

category: packages

ui-testable

npm 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

npm install @instructure/ui-testable

FAQs

Package last updated on 21 Nov 2024

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