99.10.0 • Published 4 years ago

@temporg/ui-testable v99.10.0

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

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 @temporg/ui-testable
99.10.0

4 years ago

99.9.0

4 years ago

99.8.0

4 years ago

99.6.0

4 years ago

99.7.0

4 years ago

99.4.0

4 years ago

99.5.0

4 years ago

99.2.0

4 years ago

99.3.0

4 years ago

99.1.0

4 years ago

0.8.12

4 years ago

0.8.11

4 years ago

0.8.9

4 years ago

0.8.0

4 years ago

0.0.1

4 years ago