@instructure/ui-testable
TypeScript icon, indicating that this package has built-in type declarations

10.16.4 • Public • Published

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

/@instructure/ui-testable/

    Package Sidebar

    Install

    npm i @instructure/ui-testable

    Weekly Downloads

    43,522

    Version

    10.16.4

    License

    MIT

    Unpacked Size

    120 kB

    Total Files

    17

    Last publish

    Collaborators

    • jakeoeding
    • instuici
    • eschiebel
    • maths22
    • jcrystal
    • itadmins
    • instructure-toolsmiths-service-user
    • aogata-inst
    • kyler-instructure
    • ericsaupe
    • xcudder
    • jdewar
    • jguardadom
    • jcflow
    • jozsefg-instructure
    • jacksonhowe
    • sarahgerard
    • ajmal-esa
    • robinkuss64
    • david.wenzlick.inst
    • razorsh4rk
    • ardena
    • bpjatacsuk
    • angela.gomba
    • joyenjoyer
    • cguanzon-inst
    • herrtopi
    • matyas.szabo
    • cjs118
    • camray
    • dmz985
    • aaronshaf
    • szilard.doro-inst
    • martongreczi-inst
    • instout
    • svcquizzesnpm
    • balazs.buri.instructure
    • mstarkman
    • daniel-torok
    • fmarcso
    • peipeizhou