Skip to content

Commit

Permalink
feat: add jsdoc for testid
Browse files Browse the repository at this point in the history
  • Loading branch information
saurabhdaware committed Feb 26, 2024
1 parent 2211044 commit 4350b08
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/blade/src/utils/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,11 @@ type StringChildrenType = React.ReactText | React.ReactText[];
type StringWithAutocomplete = string & Record<never, never>;

type TestID = {
/**
* Test id that can be used to select element in testing environments
*
* Checkout https://testing-library.com/docs/queries/bytestid/
*/
testID?: string;
};

Expand Down

0 comments on commit 4350b08

Please sign in to comment.