Files
smartregistry/test/helpers/ids.ts
T

9 lines
271 B
TypeScript
Raw Normal View History

/**
* Generate a unique test run ID for avoiding conflicts between test runs.
*/
export function generateTestRunId(): string {
const timestamp = Date.now().toString(36);
const random = Math.random().toString(36).substring(2, 6);
return `${timestamp}${random}`;
}