UNPKG

playwright-cucumber-ts-steps

Version:

A collection of reusable Playwright step definitions for Cucumber in TypeScript, designed to streamline end-to-end testing across web, API, and mobile applications.

20 lines (17 loc) 452 B
export function checkPeerDependencies(dependencies: string[]) { const missing: string[] = []; for (const dep of dependencies) { try { require.resolve(dep); } catch { missing.push(dep); } } if (missing.length) { console.warn( `\n❌ Missing peer dependencies: ${missing.join(", ")}` + `\nPlease install them in your project:\n\n` + `npm install --save-dev ${missing.join(" ")}\n` ); } }