You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

@instructure/ui-testable

Package Overview
Dependencies
Maintainers
42
Versions
2007
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.23.1-snapshot-3
Source
npmnpm
Version published
Weekly downloads
28K
-35.85%
Maintainers
42
Weekly downloads
 
Created
Source

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 17 Jul 2025

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