5 lines
165 B
JavaScript
5 lines
165 B
JavaScript
|
export const testid = (strings, ...values) => {
|
||
|
const id = strings.map((str, index) => str + (values[index] || '')).join('');
|
||
|
return `[data-testid="${id}"]`;
|
||
|
};
|