Reads the installed @playwright/test version from disk.
@playwright/test
Parsed Playwright version.
Uses createRequire to resolve and load the @playwright/test/package.json. This works in both ESM and CJS contexts.
createRequire
@playwright/test/package.json
const version = getPlaywrightVersion();logger.info(version.raw); // '1.58.2' Copy
const version = getPlaywrightVersion();logger.info(version.raw); // '1.58.2'
Reads the installed
@playwright/testversion from disk.