Playwright · Senior · Question 54 of 77
How do you run Playwright for several apps in a monorepo?
- 1One test file per app, all inside one shared global test folder
- 2Separate configs or projects per app, each with its
webServer - 3Run all apps on one port and test them together
Show the answer
Correct answer: Separate configs or projects per app, each with its webServer
Explanation
Per-app configs keep base URLs, servers and dependencies clear, and CI can run only the apps that changed.