DigitalConsumer.FixMyGlass/playwright-tests/impl/utils/ThrowUtils.ts
maguire-arman a2ca9134d1 Initializes Playwright test framework
Sets up the core infrastructure for Playwright-based automated testing, including:
- Docker support for consistent environments
- Azure Pipelines configuration for CI/CD
- Page Object Model structure for maintainable tests
- Test data, validation, and rule engine implementation
- Test configuration for alerts and other scenarios
2025-05-08 15:45:05 -04:00

12 lines
No EOL
354 B
TypeScript

import { error } from "console";
export function throwIf(conditionFunction: () => boolean, errorMessage: string): void {
if (conditionFunction())
throw new Error(errorMessage);
}
export function throwNotYetImplemented(nameOfThingNotImplemented: string) {
throw new Error(`${nameOfThingNotImplemented} has not yet been implemented.`)
}