e2e/ folder, alongside a playwright.config.ts. @playwright/test is installed at the project root as a dev dependency when missing, and the Playwright browsers are downloaded via bunx playwright install.
Usage
Examples
Options
Behavior
The command writesmodules/<module>/e2e/<Name>.spec.ts. If the module has no playwright.config.ts yet, one is created alongside the spec — an existing config is never overwritten. It also adds an e2e script (bunx playwright test) to the module’s package.json when one isn’t already defined.
Finally, it installs @playwright/test at the project root if missing and runs bunx playwright install to download the browsers needed to execute the test.
See e2e:run to execute the generated tests across the workspace.