9 lines
271 B
TypeScript
9 lines
271 B
TypeScript
/**
|
|
* 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}`;
|
|
}
|