Careeroza
Real World Example
How Product Teams Run Tests
Teams at companies like Razorpay or Zerodha run fast checks on every pull request and the slower E2E suite before deploy. A typical ShopEase setup:
| When | Runs | Time |
|---|---|---|
| On save (local) | Vitest watch mode for changed files | ms |
| Every PR | tsc --noEmit, ESLint, Vitest, next build | 2–4 min |
| Before deploy | Playwright smoke tests against a preview URL | 3–6 min |
| Nightly | Full Playwright suite on 3 browsers + mobile viewport | 15 min |
package.json Scripts
{
"scripts": {
"dev": "next dev --turbopack",
"build": "next build",
"start": "next start",
"lint": "eslint",
"typecheck": "tsc --noEmit",
"test": "vitest run",
"test:watch": "vitest",
"e2e": "playwright test"
}
}