Skip to content

Add role and testId properties to ease testing with libraries like testing-library#28

Open
owentar wants to merge 5 commits into
petermoresi:masterfrom
owentar:master
Open

Add role and testId properties to ease testing with libraries like testing-library#28
owentar wants to merge 5 commits into
petermoresi:masterfrom
owentar:master

Conversation

@owentar

@owentar owentar commented May 28, 2021

Copy link
Copy Markdown

In order to make this component easy to test with libraries like @testing-library we need to introduce support for role and data-testid properties (at least).

Also introduced some unit test to double check these changes (using jest). Also upgraded babel lib to latest.

NOTE: if needed, I can split this in 2 different PR's. One to upgrade babel and another one for the introduction of the actual props.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant