@masknet/jsx/prefer-test-id
Enforces data-test-id
attribute is present on interactive DOM elements to help with UI testing
/**
* @minItems Infinity
*/
export type Options = [
{
'id'?: string
'elements'?: string[]
'attributes'?: string[]
'ignore-attributes'?: string[]
},
]
<button>Download</button>
<button data-test-id="download-button">Download</button>