@dinofront/design_system 1.15.4 → 1.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Builds a `data-test-id` factory from a root `dataTestId` prefix.
|
|
3
|
+
* Returns a function that appends a suffix (`${prefix}-${suffix}`), or
|
|
4
|
+
* `undefined` when no prefix was supplied so the attribute is omitted.
|
|
5
|
+
*/
|
|
6
|
+
export declare const createTestId: (prefix?: string) => (suffix: string) => string | undefined;
|