qa-utilities

1.1.0 • Public • Published

test-utilities

Build Status Coverage Status

A collection of test utilities for web applications.

select(qaTag: string): string

Takes in a string argument of your qa selector and returns a CSS selector.

Example return value:

[data-qa="get-react-component__works"]

qa(qaTag: string): object

Takes in a string argument of your qa tag and returns an object to add to your React component.

Example return value:

{ 'data-qa': 'get-react-component__works' }

Example usage:

<SomeComponent {...qa('get-react-component__works')} />

Readme

Keywords

none

Package Sidebar

Install

npm i qa-utilities

Weekly Downloads

133

Version

1.1.0

License

MIT

Unpacked Size

38 kB

Total Files

6

Last publish

Collaborators

  • strange-developer