{"library":"pw2art","title":"pw2art – Babel plugin for Playwright to Artillery transpilation","description":"pw2art is a Babel plugin that transpiles standard Playwright test syntax into syntax compatible with the Artillery Playwright engine. Version 1.0.0 is the initial stable release. It automates the conversion of Playwright tests for use with Artillery's load testing engine, reducing manual rewriting. Key differentiator: eliminates the tedious process of adapting Playwright scripts for Artillery, enabling reuse of existing test suites for performance testing. Release cadence is not yet established.","language":"javascript","status":"active","last_verified":"Fri May 01","install":{"commands":["npm install pw2art"],"cli":null},"imports":["import pw2art from 'pw2art'","import { transform } from 'pw2art'","import { babelPluginPw2art } from 'pw2art'"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import pw2art from 'pw2art';\nimport { transform } from 'pw2art';\n\n// Example Playwright test code\nconst playwrightCode = `\nimport { test, expect } from '@playwright/test';\n\ntest('example test', async ({ page }) => {\n  await page.goto('https://example.com');\n  const title = await page.title();\n  expect(title).toBe('Example Domain');\n});\n`;\n\n// Transform to Artillery syntax\nconst result = transform(playwrightCode, { imports: false });\nconsole.log(result.code);\n","lang":"typescript","description":"Shows how to import pw2art, define source Playwright test, transpile to Artillery syntax, and log result.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}