Testing · Middle · Question 52 of 75
How do you start the app automatically before Playwright tests?
- ✓Correct answer: Configure
webServerinplaywright.configwith the command and URL to wait for - 2Start it manually in another terminal - there's no other way
- 3Call
exec("npm run dev")in each test
Explanation
reuseExistingServer: !process.env.CI uses a running dev server locally and starts a fresh one in CI.